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.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.media.site_media.v1.file_descriptor
.
Event name. Expected deleted
.
ID of the entity associated with the event.
Event timestamp.
Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
If present, indicates the action that triggered the event.
Event information.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "wix.media.site_media.v1.file_descriptor_deleted",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"id": "44bb8fd1-ee47-4673-9aez-26783569dcf3",
"entityFqdn": "wix.media.site_media.v1.file_descriptor",
"slug": "deleted",
"entityId": "8a7c1d_a8704d0436274f2e8fb8ad02b1e9417d~mv2.jpg",
"deletedEvent": {
"movedToTrash": true
},
"eventTime": "2023-01-05T14:06:11.408Z",
"triggeredByAnonymizeRequest": false
}