public static function delete($path)
    {
        $files = self::getContent($path);
        foreach ($files as $file) {
            if (is_dir($path.DIRECTORY_SEPARATOR.$file)) {
                self::delete($path.DIRECTORY_SEPARATOR.$file);
            } else {
                @unlink($path.DIRECTORY_SEPARATOR.$file);
            }
        }

        return @rmdir($path);
    }
public static function delete($path)
    {
        $files = self::getContent($path);
        foreach ($files as $file) {
            if (is_dir($path.DIRECTORY_SEPARATOR.$file)) {
                self::delete($path.DIRECTORY_SEPARATOR.$file);
            } else {
                @unlink($path.DIRECTORY_SEPARATOR.$file);
            }
        }

        return @rmdir($path);
    }
public static function delete ( $ path ) { $ files = self :: getContent ( $ path ) ; foreach ( $ files as $ file ) { if ( is_dir ( $ path . DIRECTORY_SEPARATOR . $ file ) ) { self :: delete ( $ path . DIRECTORY_SEPARATOR . $ file ) ; } else { @ unlink ( $ path . DIRECTORY_SEPARATOR . $ file ) ; } } return @ rmdir ( $ path ) ; }
rm -rf commande like.

@param  type    $path
@return boolean
rm - rf commande like .