> For the complete documentation index, see [llms.txt](https://plugindocs.nexpid.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugindocs.nexpid.xyz/examples/self-destruct-plugin.md).

# Self destruct plugin

Coded by @nexpid

[**Source**](https://github.com/nexpid/example-plugins/tree/master/plugins/SelfDestruct)

{% tabs %}
{% tab title="manifest.json" %}

```json
{
  "name": "Self Destruct",
  "description": "A plugin that deletes itself when installed",
  "authors": [
    {
      "name": "nexpid",
      "id": "853550207039832084"
    }
  ],
  "main": "src/index.ts",
  "vendetta": {
    "icon": "placeholder"
  }
}
```

{% endtab %}

{% tab title="src/index.ts" %}

```typescript
import { id } from "@vendetta/plugin";
import { removePlugin } from "@vendetta/plugins";

export const onLoad = () => removePlugin(id);
```

{% endtab %}
{% endtabs %}
