Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
You can only call this method when authenticated as a Wix app or Wix user identity.
function bulkRestoreFoldersFromTrashBin(
folderIds: Array<string>,
): Promise<void>;
IDs of the folders to restore from the Media Manager's trash bin.
import { folders } from "@wix/media";
async function bulkRestoreFoldersFromTrashBin(folderIds) {
const response = await folders.bulkRestoreFoldersFromTrashBin(folderIds);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.