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

# Delete a feature

`DELETE /features/{feature_code}`

## Request

- Base URL: `https://api-m.sandbox.paypal.com`
- URL: `https://api-m.sandbox.paypal.com/features/{feature_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/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes a feature from the system. This is a destructive operation that will remove the feature and all its associated entitlements from every plan and subscription. Use with caution as this cannot be undone. The operation will fail if the feature is currently assigned to any active plans or subscriptions to prevent accidental data loss.

## Path parameters

- `feature_code` string, required

## Response `204`

Feature was successfully deleted and all associated data has been removed

## Other responses

- `403`: Authorization failed due to insufficient permissions.
- `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)
