---
title: "Delete a plan by Code"
method: DELETE
path: "/plans/{plan_code}"
tags: ["Plans"]
---

# Delete a plan by Code

`DELETE /plans/{plan_code}`

## Request

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

Delete a plan by providing the plan ID. This operation permanently removes the plan from the system.

## Path parameters

- `plan_code` string, required

## Response `204`

Plan deleted successfully

## Other responses

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