removeMediaPath(virtualFolderName, mediaPath, refreshLibrary) {

        if (!virtualFolderName) {
            throw new Error("null virtualFolderName");
        }

        if (!mediaPath) {
            throw new Error("null mediaPath");
        }

        let url = "Library/VirtualFolders/Paths";

        url = this.getUrl(url, {
            refreshLibrary: refreshLibrary ? true : false,
            path: mediaPath,
            name: virtualFolderName
        });

        return this.ajax({
            type: "DELETE",
            url
        });
    }
/**
    * Removes a media path from a virtual folder
    * @param {String} name
    */
Removes a media path from a virtual folder
@param {String} name
Removes a media path from a virtual folder @param { String } name
removeMediaPath(virtualFolderName, mediaPath, refreshLibrary) {
        if (!virtualFolderName) {
            throw new Error("null virtualFolderName");
        }
        if (!mediaPath) {
            throw new Error("null mediaPath");
        }
        let url = "Library/VirtualFolders/Paths";
        url = this.getUrl(url, {
            refreshLibrary: refreshLibrary ? true : false,
            path: mediaPath,
            name: virtualFolderName
        });
        return this.ajax({
            type: "DELETE",
            url
        });
    }
removeMediaPath ( virtualFolderName , mediaPath , refreshLibrary ) { if ( ! virtualFolderName ) { throw new Error ( "null virtualFolderName" ) ; } if ( ! mediaPath ) { throw new Error ( "null mediaPath" ) ; } let url = "Library/VirtualFolders/Paths" ; url = this . getUrl ( url , { refreshLibrary : refreshLibrary ? true : false , path : mediaPath , name : virtualFolderName } ) ; return this . ajax ( { type : "DELETE" , url } ) ; }
Removes a media path from a virtual folder
 @param {String} name
Removes a media path from a virtual folder @param { String } name