delete-object
Permanently remove a Twist thread, comment, or direct message. Requires confirmation due to irreversibility.
Instructions
Permanently delete a Twist object. targetType: "thread" deletes a thread (and all of its comments); "comment" deletes a single thread comment; "message" deletes a direct/group conversation message. Always pass targetId. Deletion is irreversible — confirm with the user before invoking. Note: the Twist API only allows deletion by the object's creator or a workspace admin; the call will be rejected otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | The ID of the thread, comment, or conversation message to delete. | |
| targetType | Yes | The type of object to delete: thread, comment, or message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| success | Yes | ||
| threadId | No | ||
| commentId | No | ||
| messageId | No | ||
| targetType | Yes |