---
title: "DELETE /policies/{policyName}/version/{policyVersionId}"
method: DELETE
path: "/policies/{policyName}/version/{policyVersionId}"
---

# DELETE /policies/{policyName}/version/{policyVersionId}

`DELETE /policies/{policyName}/version/{policyVersionId}`

Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this action. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

Requires permission to access the [DeletePolicyVersion](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `policyName` string, required
- `policyVersionId` string, required

## Response `200`

Success

## Other responses

- `480` — DeleteConflictException
- `481` — ResourceNotFoundException
- `482` — InvalidRequestException
- `483` — ThrottlingException
- `484` — UnauthorizedException
- `485` — ServiceUnavailableException
- `486` — InternalFailureException

---

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