# Request Account Delete

{% hint style="warning" %}
Account Delete feature must be enabled to use this JS Bridge.
{% endhint %}

We’ve provided the JavaScript function `twinr_request_account_delete()` to make it easy for you to initiate the account deletion process.

To allow users to request their account delete from within the app, simply call the `twinr_request_account_delete()` function in your website’s JavaScript.

```javascript
// Trigger account delete when the user requests it
twinr_request_account_delete();
```

You can integrate this function into your app’s settings page or profile section, where users typically manage their account details. For example, when a user clicks on a “Delete My Account” button, the twinr\_request\_account\_delete() function can be triggered to initiate the process. For example:

```html
<button onclick="twinr_request_account_delete()">Delete My Account</button>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.twinr.dev/js-bridge/request-account-delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
