SocialMate icon

SocialMate

Control WhatsApp from n8n or an AI agent: send & read messages, look up contacts, manage groups, download media, queue paced batches of personalised messages, and fetch conversation memory (Get AI Context) — all through your self-hosted SocialMate server.

Media → Delete

AI-generated

Summary

Permanently deletes the specified media file from the selected WhatsApp account’s local storage. The metadata record remains with state deleted; SocialMate may be unable to download the file again, especially if WhatsApp’s copy has expired. Requires SocialMate Pro and an admin-scope API key.

Inputs

  • Account Name or ID — Select the WhatsApp account. Leave empty to auto-select if the API key is bound to one account; choose an account when the key can access multiple.
  • Media ID (required) — ID of the media item, from Media: Get Many or a media.discovered trigger event.

Output shape

A single item containing the API response as JSON.

The delete request targets the selected account’s media endpoint and returns a success response; it does not return the deleted file’s bytes. Errors are raised for failed requests unless Continue On Fail is enabled.

Links

Discussion