Delete attachments from server

Deleting previous uploaded files will help you free up your space and allow you to upload new files

It is important that you delete the files that you are not going to use, otherwise the system will delete them automatically

To delete one or more files, we leave you an example with curl below. As you can see, "files" is an array of strings. Each of these strings is a token that is associated with a file that you have previously uploaded.

In case you have +1 file to delete, you can send them all together in the file array

curl --location --request DELETE 'https://api.youremailapi.com/files' \
--header 'Content-Type: application/json' \
--header 'apikey: {YOUR_API_KEY}' \
--data '{
    "files": [
        "c1798e9220511634267073e1f118796214ad39a94ae4a85699b2fdb95fe482ce",
        "69ca3ae3c06a9afce511698500710a46c187368abd05e0b20c7e50a77f6ab5a2"
    ]
}'