Delete an attachment.
Delete access is granted only if user has write permission to the conversation containing the attachment.
cURL
curl --request DELETE \ --url https://api.example.com/api/v1/media/{attachment_id} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response