> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an Offer Linked to a Subscription

> You can delete an Offer linked to a Subscription from the [Dashboard](/payments/subscriptions/offers/delete#delete-an-offer-linked-to-a-subscription-from) or using [APIs](/payments/subscriptions/offers/delete#delete-an-o

You can delete an Offer linked to a Subscription from the [Dashboard](/payments/subscriptions/offers/delete#delete-an-offer-linked-to-a-subscription-from) or using [APIs](/payments/subscriptions/offers/delete#delete-an-offer-linked-to-a-subscription-using). The invoices generated after the offer is deleted will be charged in full.

## Delete an Offer Linked to a Subscription From Dashboard

Watch this video to see how to delete an offer linked to a Subscription from the Dashboard.

To delete an Offer linked to a Subscription:

1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu.
2. Click on the **Subscription Id** for which you want to update the offer.
3. Click **Remove** against Offer.

<Warning>
  **Watch Out!**

  The offer will be removed from the Subscription only at the end of the cycle. It is not possible to remove an offer linked to a Subscription immediately.

  1. Click **Yes, Remove**.
</Warning>

## Delete an Offer Linked to a Subscription Using APIs

Use the [Delete an offer Linked to a Subscription API](/api/payments/subscriptions/delete-offer).

````curl: Curl theme={null}
curl -u [YOUR_KEY_ID]:YOUR_KEY_SECRET] \
-X DELETE https://api.razorpay.com/v1/subscriptions/sub_00000000000001/offer_JHD834hjbxzhd38d \

```java: Java
RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]");

String subscriptionId = "sub_00000000000001";

String offerId = "offer_JHD834hjbxzhd38d";

Subscription subscription = razorpay.subscription.deleteSubscriptionOffer(subscriptionId, offerId);

```php: PHP
$api = new Api($key_id, $secret);

$api->subscription->fetch($subscriptionId)->deleteOffer($offerId)

```javascript: Node.js
var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' })

instance.subscriptions.deleteOffer(subscriptionId, offerId)

```python: Python
import razorpay
client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET"))

client.subscription.delete_offer(subscriptionId, offerId)

```ruby: Ruby
require "razorpay"
Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET')

subscriptionId = "sub_00000000000001"

offerId = "offer_JHD834hjbxzhd38d"

```go: Go
import ( razorpay "github.com/razorpay/razorpay-go" )
client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET")

body, err := client.Subscription.DeleteOffer("", "", nil, nil)

```csharp: .NET
RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]");

string subscriptionId = "sub_I3GGEs7Xgmnozy";

string offerId = "offer_JCTD1XMlUmzF6Z";

Subscription subscription = client.Subscription.Fetch(subscriptionId).DeleteOffer(offerId);
````

### Related Information

* [About Offers](/payments/subscriptions/offers)
* [Create Subscription Offers](/payments/subscriptions/offers/create)
* [Link an Offer to a Subscription](/payments/subscriptions/offers/link)
* [Update an Offer Linked to a Subscription](/payments/subscriptions/offers/update)
