Delete Elemental File
Deletes files, images, cover images, or avatar image associated with a specific elemental
DELETE/v1/user/elemental/{id}/files- Param
- Body
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | ✅ | ID of the elemental |
Example
/v1/user/elemental/your-elemental-id/files
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| avatar | boolean | ❌ | Delete the avatar image |
| cover_images | number[] | ❌ | ID of the cover images to delete |
| files | number[] | ❌ | ID of the files to delete |
| images | number[] | ❌ | ID of the images to delete |
Example
{
"avatar": true,
"cover_images": [
123
]
}
CURL Example
curl -X DELETE "https://api-integrations.snackprompt.com/v1/user/elemental/{id}/files" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"avatar":true,"cover_images":[123]}'
warning
This action is irreversible.
info
This route will return a 200 status code if the elemental is successfully deleted.