﻿---
title: stack kb agent-builder delete-agent-builder-plugins-pluginid cli command
description: Delete a plugin Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/agent-builder/delete-agent-builder-plugins-pluginid
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb agent-builder delete-agent-builder-plugins-pluginid cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb agent-builder delete-agent-builder-plugins-pluginid \
  --plugin-id <plugin-id> \
  [options]
```

Delete a plugin
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--plugin-id string required">
    The unique identifier of the plugin.
  </definition>
  <definition term="--force">
    If true, removes the plugin skills from agents that use them and then deletes the plugin. If false and any agent uses the plugin skills, the request returns 409 Conflict with the list of agents.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
  <definition term="--yes">
    confirm destructive action without prompting
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>