---
title: "DELETE /intents/{name}"
method: DELETE
path: "/intents/{name}"
---

# DELETE /intents/{name}

`DELETE /intents/{name}`

Deletes all versions of the intent, including the `$LATEST` version. To delete a specific version of the intent, use the DeleteIntentVersion operation.

You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.

If you get the `ResourceInUseException` exception, it provides an example reference that shows where the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get the same exception when you attempt to delete the intent again, repeat until the intent has no references and the call to `DeleteIntent` is successful.

This operation requires permission for the `lex:DeleteIntent` action.

## Path parameters

- `name` string, required

## Response `204`

Success

## Other responses

- `480` — NotFoundException
- `481` — ConflictException
- `482` — LimitExceededException
- `483` — InternalFailureException
- `484` — BadRequestException
- `485` — ResourceInUseException

---

[API](https://skmtc.net/aws/apis/lex-models.md) · [All operations](https://skmtc.net/aws/apis/lex-models/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lex-models/versions/7b110b0aa60e/schema)
