﻿---
title: stack es ml delete-calendar-job cli command
description: Delete anomaly jobs from a calendar. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/458/cli/stack/es/ml/delete-calendar-job
---

# stack es ml delete-calendar-job cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es ml delete-calendar-job \
  --calendar-id <calendar-id> \
  --job-id <job-id> \
  [options]
```

Delete anomaly jobs from a calendar.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--calendar-id string required">
    A string that uniquely identifies a calendar.
  </definition>
  <definition term="--job-id string required">
    An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups.
    **Repeatable:** pass `--job-id` multiple times to supply more than one value
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

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