/v1/communities/{community_id}/conversations/{conversation_id}/messages/{message_id}AuthSoft-delete a message. Reserved to the sender; the row stays so the conversation timeline doesn't orphan replies. Reads return body `"(deleted)"`. Pass the sender via `?actor_id=`.
Path parameters
community_id*stringSocial community UUID. Must belong to the PAK's workspace.
conversation_id*stringConversation UUID.
message_id*stringDirect message UUID.
Query parameters
actor_id*string · uuidThe sender — must match the message's sender_id.
Response · 204
Message soft-deleted.
Example
Request
DELETE https://social.productcraft.co/v1/communities/{community_id}/conversations/{conversation_id}/messages/{message_id}
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});social.community(…).conversations.messages.delete(conversationId, messageId, params, options?): void