# Teardown Instances

## axiom-rm

Remove one or more axiom instances ❌

Once you're done with your instance, delete it using the command, axiom-rm

```
axiom-rm jerry
axiom-rm jerry -f # avoid confirmation prompts
axiom-rm jerry01 jerry02 -f # explicitly list the names of the instances to delete
axiom-rm 'jerry\*' -f # delete all instances starting with jerry
axiom-rm '\*erry\*' -f # delete based on substring matches
```

The -f/--force flag will not prompt on deletion, I generally use this, but if you want to be ultra sure omit the -f flag.

The -m/--multi flag deletes many instances at once. Its a faster way to delete instances and uses less API calls (with most providers)

### Help Menu

```
Description:
  Delete one or more cloud hosted compute devices
  Supports globbing (wildcarding) to match instances based on patterns in their names, such as prefix, suffix, or substring matches.
Examples:
  axiom-rm testy01 # Delete instance named 'testy01'
  axiom-rm 'testy*' # Delete all instances starting with 'testy' (you may need to escape the asterisk)
  axiom-rm '*tess*' # Delete all instances containing the string 'tess' (you may need to escape the asterisks)
  axiom-rm '\*' --force --multi # Delete all instances on the account, avoid confirmation prompts, delete many instances with one API call
Usage:
  <name> string (required)
    Name of the instance(s) to delete
  -f/--force (optional)
    Avoid confirmation prompts
  -m/--multi (optional)
    Delete multiple instances at once
  --debug (optional)
    Run with set -xv, warning: very verbose
  --help (optional)
    Display this help menu

```


---

# 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://ax.attacksurge.com/overview/quickstart-guide-1/teardown-instances.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.
