---
title: "Forget the linked account and remove the plugin setting"
method: DELETE
path: "/api/plugin_settings/{id}/credentials"
tags: ["Plugin Settings"]
---

# Forget the linked account and remove the plugin setting

`DELETE /api/plugin_settings/{id}/credentials`

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/plugin_settings/{id}/credentials`
- Auth: HTTP bearer

Removes the OAuth credential the account holds for this plugin AND deletes the plugin setting, so the plugin can be set up again from scratch. Destructive: the setting is gone afterwards.

## Path parameters

- `id` string, required

## Response `204`

Credential forgotten and setting removed

## Other responses

- `401`: Unauthorized
- `404`: Plugin setting belongs to another user
- `422`: A published recipe cannot be removed

---

[API](https://skmtc.dev/trmnl/apis/trmnl-api.md) · [All operations](https://skmtc.dev/trmnl/apis/trmnl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trmnl/apis/trmnl-api/revisions/66179e6d663b?raw)
