﻿---
title: stack kb links delete-links-id cli command
description: Delete a links library item Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/tree/main/cli/stack/kb/links/delete-links-id
---

# stack kb links delete-links-id cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb links delete-links-id --id <id> [options]
```

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

## Options

<definitions>
  <definition term="--id string required">
    The unique ID of the links library item, as returned by the create or search endpoints.
  </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>