---
title: "DELETE /assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}"
method: DELETE
path: "/assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}"
---

# DELETE /assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}

`DELETE /assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}`

Delete and Amazon Q in Connect AI Prompt version.

## Path parameters

- `assistantId` string, required
- `aiPromptId` string, required
- `versionNumber` integer, required

## Response `204`

Success

- DeleteAIPromptVersionResponse

## Other responses

- `480` — ValidationException
- `481` — ConflictException
- `482` — UnauthorizedException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException
- `485` — ThrottlingException

---

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