classes/BuildTasks.php
static function run_clean( $task=null, $args=array(), $cliopts=array() )
    {
        $opts = self::getOpts( @$args[0], @$args[1], $cliopts );
        if ( !SharedLock::acquire( $opts['extension']['name'], LOCK_EX, $opts ) )
            throw new PakeException( "Source code locked by another process" );

        pake_remove_dir( $opts['build']['dir'] );

        SharedLock::release( $opts['extension']['name'], LOCK_EX, $opts );
    }
static function run_clean( $task=null, $args=array(), $cliopts=array() )
    {
        $opts = self::getOpts( @$args[0], @$args[1], $cliopts );
        if ( !SharedLock::acquire( $opts['extension']['name'], LOCK_EX, $opts ) )
            throw new PakeException( "Source code locked by another process" );

        pake_remove_dir( $opts['build']['dir'] );

        SharedLock::release( $opts['extension']['name'], LOCK_EX, $opts );
    }
Removes the build/ directory