## Delete chat completion

`$ openai chat:completions delete`

**delete** `/chat/completions/{completion_id}`

Delete a stored chat completion. Only Chat Completions that have been
created with the `store` parameter set to `true` can be deleted.

### Parameters

- `--completion-id: string`

  The ID of the chat completion to delete.

### Returns

- `chat_completion_deleted: object { id, deleted, object }`

  - `id: string`

    The ID of the chat completion that was deleted.

  - `deleted: boolean`

    Whether the chat completion was deleted.

  - `object: "chat.completion.deleted"`

    The type of object being deleted.

### Example

```cli
openai chat:completions delete \
  --api-key 'My API Key' \
  --completion-id completion_id
```

#### Response

```json
{
  "id": "id",
  "deleted": true,
  "object": "chat.completion.deleted"
}
```
