moveFilesToTrash( )

Moves single or multiple files to the Media Manager's trash.

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

Moving many files 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 the trashed files.

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

Method Declaration
Method Parameters

URLs of the files to move to trash.

Was this helpful?