kernel/private/classes/webdav/ezwebdavcontentbackend.php
protected function deleteVirtualFolder( $currentSite, $target )
    {
        $target = $this->splitFirstPathElement( $target, $virtualFolder );

        if ( !in_array( $virtualFolder, array( self::virtualContentFolderName(), self::virtualMediaFolderName() ) ) )
        {
            return false; // @as self::FAILED_NOT_FOUND;
        }

        if ( !$target )
        {
            // We have reached the end of the path
            // We do not allow 'delete' operations for the virtual folder.
            return false; // @as self::FAILED_FORBIDDEN;
        }

        if ( $virtualFolder === self::virtualContentFolderName() or
             $virtualFolder === self::virtualMediaFolderName() )
        {
            return $this->deleteContent( $currentSite, $virtualFolder, $target );
        }

        return false; // @as self::FAILED_FORBIDDEN;
    }
protected function deleteVirtualFolder( $currentSite, $target )
    {
        $target = $this->splitFirstPathElement( $target, $virtualFolder );

        if ( !in_array( $virtualFolder, array( self::virtualContentFolderName(), self::virtualMediaFolderName() ) ) )
        {
            return false; // @as self::FAILED_NOT_FOUND;
        }

        if ( !$target )
        {
            // We have reached the end of the path
            // We do not allow 'delete' operations for the virtual folder.
            return false; // @as self::FAILED_FORBIDDEN;
        }

        if ( $virtualFolder === self::virtualContentFolderName() or
             $virtualFolder === self::virtualMediaFolderName() )
        {
            return $this->deleteContent( $currentSite, $virtualFolder, $target );
        }

        return false; // @as self::FAILED_FORBIDDEN;
    }
protected function deleteVirtualFolder ( $ currentSite , $ target ) { $ target = $ this -> splitFirstPathElement ( $ target , $ virtualFolder ) ; if ( ! in_array ( $ virtualFolder , array ( self :: virtualContentFolderName ( ) , self :: virtualMediaFolderName ( ) ) ) ) { return false ; // @as self::FAILED_NOT_FOUND; } if ( ! $ target ) { // We have reached the end of the path // We do not allow 'delete' operations for the virtual folder. return false ; // @as self::FAILED_FORBIDDEN; } if ( $ virtualFolder === self :: virtualContentFolderName ( ) or $ virtualFolder === self :: virtualMediaFolderName ( ) ) { return $ this -> deleteContent ( $ currentSite , $ virtualFolder , $ target ) ; } return false ; // @as self::FAILED_FORBIDDEN; }
Handles deletion on the virtual folder level.

It will check if the target is below a content folder in which it calls
deleteContent().

@param string $currentSite Eg. 'plain_site_user'
@param string $target Eg. 'Content/Folder1/file1.txt'
@return bool
Handles deletion on the virtual folder level .