Files

Files Delete

POST
/files.delete

Deletes a file.

Authorization

slackAuth files:write:user
AuthorizationBearer <token>

In: header

Scope: files:write:user

Header Parameters

token?string

Authentication token. Requires scope: files:write:user

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

file?string

ID of file to delete.

Response Body

application/json

application/json

curl -X POST "https://example.com/files.delete" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d ''
{  "ok": "True"}