# diagrid call state delete

Delete a state item

### Description

Delete a state item using an existing state component

```
diagrid call state delete <key> [flags]
```

### Examples

```

  # Delete a state item from an existing state component
  diagrid call state delete mystatekey --component my-state-store --id my-id

```

### Options

```
  -a, --id string          id used to delete state
  -c, --component string   Component name for target state store
  -p, --project string     Name of existing project
  -o, --output string      Output format, supported [table, yaml, json] (default "table")
  -v, --verbose            Include verbose output such as curl command and response body
  -h, --help               help for delete
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid call state](./state.md)	 - Read and write state store entries via the Dapr State API
