# delete

## Usage

`prism delete` deletes your agent. For Docker agents, this means removing your image (and all intermediate ones) from the Docker engine. For EC2 agents, this means removing your EC2 instance and associated resources (e.g., key-pairs, security groups, etc.)

```
Usage: prism agent delete [OPTIONS]                                                                                                 
                                                                                                                                     
 Delete your agent.                                                                                                                  
                                                                                                                                     
 Examples:                                                                                                                           
                                                                                                                                     
  • prism agent delete -f ./ec2.yml                                                                                                  
  • prism graph delete -f /Users/agents.yml                                                                                          
                                                                                                                                     
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --file       -f  TEXT                     Path to agent configuration YML                                                      │
│                                              [required]                                                                           │
│    --log-level  -l  [info|warn|error|debug]  Set the log level                                                                    │
│    --full-tb                                 Show the full traceback when an error occurs                                         │
│    --help                                    Show this message and exit.                                                          │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

## Example

Here's what the output looks like in Terminal (using a Docker agent as an example):

```
$ prism agent delete -f ./docker_agent.yml
--------------------------------------------------------------------------------
08:56:30 | INFO  | Deleting agent...
 
etl-project-docker-agent:1.1[delete] | Deleting image etl-project-docker-agent:1.1
--------------------------------------------------------------------------------
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runprism.com/v0.2.3/cli/agent/delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
