---
title: "Delete a feature privilege"
method: DELETE
path: "/features/{feature_code}/privileges/{privilege_code}"
tags: ["Features"]
---

# Delete a feature privilege

`DELETE /features/{feature_code}/privileges/{privilege_code}`

## Request

- Base URL: `https://api-m.sandbox.paypal.com`
- URL: `https://api-m.sandbox.paypal.com/features/{feature_code}/privileges/{privilege_code}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/api/oauth-proxy` scopes: `read`, `write`
- TypeScript: <https://skmtc.dev/paypal/apis/usage-based-billing-api/docs/features/:feature_code/privileges/:privilege_code/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a specific privilege from a feature definition. This is a destructive operation that affects all plans and subscriptions using this feature - the privilege and any values assigned to it will be permanently removed from all entitlements. Use this when a privilege is no longer needed or was created in error.

## Path parameters

- `feature_code` string, required
- `privilege_code` string, required

## Response `204`

Privilege was successfully removed from the feature and all associated entitlements

## Other responses

- `404`: Resource Not Found.
- `409`: Conflict - The request could not be completed due to a conflict with the current state of the resource.
- `500`: Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.dev/paypal/apis/usage-based-billing-api.md) - [All operations](https://skmtc.dev/paypal/apis/usage-based-billing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paypal/apis/usage-based-billing-api/revisions/22fb46514ac4?raw)
