Temporarily deletes the specified folders from the Media Manager.
The bulkDeleteFolders()
function returns a Promise that resolves when the folders are deleted.
The deleted folders are moved to the Media Manager's TRASH_ROOT
folder (trash bin) unless permanently deleted. To permanently delete folders, pass the permanent
parameter with the value true
. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
Notes:
bulkRestoreFoldersFromTrashBin()
function to restore folders from the Media Manager's trash bin.You can only call this method when authenticated as a Wix app or Wix user identity.
IDs of the folders to move to the Media Manager's trash bin.
Options to use when deleting folders.