On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-plans-intro/recur-bill-deleting-a-plan.md)  
Filter  
FILTER BY TAG

Deleting a Plan {#recur-bill-deleting-a-plan}
=============================================

You can delete a standard plan that has a draft status. You can also delete a plan that has an active or inactive status and has never been assigned to any subscriptions.  
Follow these steps to delete a plan:

1. In the endpoint path, include the plan ID that you received when you retrieved a list of plans.
2. Send the request to the Recurring Billing endpoint:  
   Production: `DELETE https://api.cybersource.com/rbs/v1/plans/{id}`  
   Test: `DELETE https://apitest.cybersource.test.com/rbs/v1/plans/{id}`
3. Verify that the request was successful. A 200-level HTTP response code indicates success. For information about response codes, see [Transaction Response Codes](https://developer.cybersource.com/api/reference/response-codes.md "").{#recur-bill-deleting-a-plan_d9e19}

REST Example: Deleting a Plan {#recur-bill-delete-a-plan-examples}
==================================================================

Response to a Successful Request

```
{
  "status": "COMPLETED"
}
```

Error Response

```
{
    "status": "NOT_FOUND",
    "reason": "NOT_FOUND",
    "message": "One or more fields in the request contains invalid data.",
    "details": [
        {
            "field": "subscriptionInformation.planId",
            "reason": "INVALID_DATA"
        }
    ]
}
```

RELATED TO THIS PAGE

