> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tronrental.com/llms.txt
> Use this file to discover all available pages before exploring further.

# सब्सक्रिप्शन हटाएं

> ऑटो बैंडविड्थ सब्सक्रिप्शन हटाएं

## सब्सक्रिप्शन हटाएं

सब्सक्रिप्शन हटाता है। हम एड्रेस पर नज़र रखना बंद कर देते हैं और उस पर डेलिगेट की गई बैंडविड्थ कुछ सेकंड में वापस ले लेते हैं; एड्रेस नए सब्सक्रिप्शन के लिए खाली हो जाता है। हटाने से पहले जिस ट्रांसफर ने हमारी बैंडविड्थ इस्तेमाल की, उसका शुल्क फिर भी लिया जाता है। `buy_bandwidth` स्कोप आवश्यक है।

सेटिंग खोए बिना कुछ समय के लिए रोकने के लिए, इसके बजाय `enabled: false` के साथ [सब्सक्रिप्शन को रोकें](https://docs.tronrental.com/hi/api-reference/auto-bandwidth/update-subscription.md)।

### पाथ पैरामीटर

**sub\_id** `number` *required*

सब्सक्रिप्शन ID — सब्सक्रिप्शन बनाने या उनकी सूची के रिस्पॉन्स का `id`

### रिस्पॉन्स

**id** `number`

हटाए गए सब्सक्रिप्शन की ID

**status** `string`

`deleted`

### उदाहरण

```bash cURL theme={null}
curl -X DELETE https://api.tronrental.com/v1/bandwidth/auto/42 \
  -H "X-API-Key: your_api_key"
```

```python Python theme={null}
import requests

resp = requests.delete(
    "https://api.tronrental.com/v1/bandwidth/auto/42",
    headers={"X-API-Key": "your_api_key"},
)
print(resp.json())
```

```javascript JavaScript theme={null}
const resp = await fetch("https://api.tronrental.com/v1/bandwidth/auto/42", {
  method: "DELETE",
  headers: { "X-API-Key": "your_api_key" },
});
console.log(await resp.json());
```

```json Response theme={null}
{
  "id": 42,
  "status": "deleted"
}
```

### त्रुटियाँ

| स्थिति | कोड | कब |
| - | - | - |
| `403` | `FORBIDDEN` | API कुंजी के पास `buy_bandwidth` स्कोप नहीं है |
| `404` | `NOT_FOUND` | आपके खाते में इस ID का कोई सब्सक्रिप्शन नहीं है (या वह पहले ही हटाया जा चुका है) |

```json theme={null}
{
  "detail": {
    "error": {
      "code": "NOT_FOUND",
      "message": "Auto-Bandwidth subscription not found"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.