﻿---
title: stack kb agent-builder delete-agent-builder-conversations-conversation-id-attachments-attachment-id cli command
description: Delete conversation attachment 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/406/cli/stack/kb/agent-builder/delete-agent-builder-conversations-conversation-id-attachments-attachment-id
---

# stack kb agent-builder delete-agent-builder-conversations-conversation-id-attachments-attachment-id cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb agent-builder delete-agent-builder-conversations-conversation-id-attachments-attachment-id \
  --conversation-id <conversation-id> \
  --attachment-id <attachment-id> \
  [options]
```

Delete conversation attachment

## Options

<definitions>
  <definition term="--conversation-id string required">
    The unique identifier of the conversation.
  </definition>
  <definition term="--attachment-id string required">
    The unique identifier of the attachment to delete.
  </definition>
  <definition term="--[no-]permanent">
    If true, permanently removes the attachment (only for unreferenced attachments).
  </definition>
</definitions>


## stack Options

<definitions>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="-V --[no-]version">
    Print the Elastic CLI version
  </definition>
  <definition term="--config-file string">
    path to a config file (default: ~/.elasticrc.yml)
  </definition>
  <definition term="--use-context string">
    override the active context from the config file
  </definition>
  <definition term="--command-profile string">
    restrict available commands to a deployment profile (serverless, stack, default)
  </definition>
  <definition term="--[no-]json">
    output as JSON
  </definition>
  <definition term="--output-fields string">
    comma-separated list of fields to include in output (dot-notation supported)
  </definition>
  <definition term="--output-template string">
    Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>