moveFoldersToTrash( )

Moves single or multiple folders, including their files and sub-folders, to the Media Manager's trash.

The moveFoldersToTrash() function returns a Promise that resolves when the folder(s) are moved to the Media Manager's trash.

Moving many folders to trash at once is an asynchronous action. It may take some time for the results to be seen in the Media Manager.

Use the Media Manager to restore or permanently delete trashed folders.

Attempting to move already-trashed folders to trash again doesn't result in an error.

Method Declaration
Method Parameters

IDs of the folders to move to trash.

Was this helpful?