> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# supportComposerDraftDelete

> Discard your composer draft on a ticket, as the help desk composer's trash button does. Its files go with it, and a thread opened only for the draft is removed. Returns false when the ticket has no such draft of yours, including a teammate's, one already sent or discarded, or another store's. Throws ACTION_REJECTED for a SCHEDULED or SENDING draft: discarding it wouldn't stop the send, so cancel the scheduled send in the help desk first.

**Required scopes:** [`support_messages_send`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_messages_send)

## Arguments

**id** `ID!` *required*

The id of the draft, from SupportTicket.composerDrafts.

**ticketId** `ID!` *required*

The id of the ticket.

## Returns

**supportComposerDraftDelete** `Boolean!` *required*

## Errors

Besides the [errors any request can return](https://developers.redo.com/docs/api-reference/v3/errors.md), this operation fails with these codes in `extensions.code`.

| Code | HTTP status | Meaning | Retry |
| - | - | - | - |
| `TEAM_MEMBER_REQUIRED` | `403` | The write is a team member's own, such as a composer draft, and the credential acts for no team member. Nothing was written. | Call with a credential that acts for a team member: the public MCP's or a merchant-app session's. |
| `BAD_USER_INPUT` | `400` | An argument is invalid, or names something the store doesn't have. The message says which. Nothing was written. | Fix the input the message names, then send it again. |
| `ACTION_REJECTED` | `422` | The record can't take the action now, or the platform it belongs to refused it. The message says why, in words a merchant can act on. | Act on the message, such as reconnecting the store's account, then send it again. A platform rate limit clears on its own after a few minutes. |
| `INTERNAL_SERVER_ERROR` | `500` | Something failed on Redo's side. The change may or may not have been made. | Read the record to see whether the change was made before sending it again. A send with an idempotencyKey is safe to retry with the same key. |

## Example

```graphql theme={null}
mutation {
  supportComposerDraftDelete(id: "...", ticketId: "...")
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.