file_deleted event
A file was deleted
Facts
Required Scopes
Usage info
This example includes both the event wrapper and the event structure for the file_deleted event.
{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "file_deleted",
"file_id": "F2147483862",
"event_ts": "1361482916.000004"
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}
The file_deleted event is sent to all connected clients for a workspace when a
file is deleted. Unlike most file events, the file property contains a file
ID and not a full file object.
This event is not raised if the reason for a file's removal is due to a workspace's file retention policy, as opposed to a user deleting the file.