---
title: "Delete a Policy"
method: DELETE
path: "/v1/fleet/{fleet_name}/policies/{policy_name}"
tags: ["Fleets"]
---

# Delete a Policy

`DELETE /v1/fleet/{fleet_name}/policies/{policy_name}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/fleet/{fleet_name}/policies/{policy_name}`
- Auth: API key in header `authorization`

Delete a policy. It will not delete the fleet.

## Path parameters

- `fleet_name` string, required
- `policy_name` string, required

## Response `200`

OK

- Error
  - `message` string, required: A message depending of the request termination

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
