---
title: "Delete"
method: DELETE
path: "/external_storage_policies/{nameOrId}"
tags: ["externalStoragePolicies"]
---

# Delete

`DELETE /external_storage_policies/{nameOrId}`

Deletes an external storage policy by name or ID. The policy must not be referenced by any agent.

## Path parameters

- `nameOrId` string, required

## Query parameters

- `project` string

## Headers

- `Authorization` string, required

## Response `200`

Success response

- ExternalStoragePoliciesDeleteResponse200
  - `success` boolean, required — Whether the external storage policy was deleted successfully.

## Other responses

- `401` — Unauthorized (authentication missing or invalid)
- `403` — Forbidden (resource belongs to a different organization)
- `404` — External storage policy not found
- `409` — External storage policy is still attached to one or more agents
- `500` — Internal server error

---

[API](https://skmtc.net/phonic/apis/api-reference.md) · [All operations](https://skmtc.net/phonic/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phonic/api-reference/revisions/7f8c81a5a990/schema)
