onFileDescriptorDeleted( )


Notes:

Triggered when a file is deleted.

If the movedToTrash property in the event object true, the file was moved to the Media Manager's trash bin. If the movedToTrash property in the event object is false, the file was permanently deleted.

Permissions
Manage Bookings Services and Settings
Manage Media Manager
Read Media Manager
Manage Events
Access Verticals by Automations
Set Up Automations
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function onFileDescriptorDeleted(handler: function): void;
Method Parameters
handlerfunction

handler(event: FileDescriptorDeletedEnvelope): void | Promise<void>

JavaScript
import { files } from "@wix/media"; files.onFileDescriptorDeleted((event) => { // handle your event here });
Did this help?