delete_file
Permanently delete a file from the File Manager using its file ID. This action is irreversible and will break any references.
Instructions
Permanently delete a file from the File Manager.
Irreversible. Any campaign or template still referencing the file's hosted URL will show a broken image afterwards. Use list_files to find the file_id and get_file to confirm the target before deleting.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: file_id: File ID (numeric, as a string) from list_files. account: Optional account name (e.g. 'marketing') configured via MAILCHIMP_API_KEY_. Omit to use the default account. See list_accounts.
Returns: JSON with status 'success' on deletion, or an error object if file_id is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| file_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |