# Account Delete

The ability for users to delete their accounts is a mandatory feature for iOS and Android that provides users with control over their data and privacy.

If you do not have ability to let the user delete their account(example <https://www.mississippimiracleclay.com/account-removal-request/>), then you can use Twinr's extension.

### <mark style="color:green;">How to Activate Account Delete?</mark>

1.) Go to Add-on -> Extension -> Account Delete and enable it.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2F6V5ToC6FDviNcJ445xWY%2FScreenshot%202024-01-05%20at%2010.36.52%E2%80%AFAM.png?alt=media&#x26;token=23842459-341c-42a6-931b-009d710444a0" alt=""><figcaption></figcaption></figure>

2.) You can see the preview of the form on the right side.&#x20;

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FYgWGDqWR4rWpCtlE1bu3%2FScreenshot%202024-01-05%20at%2011.13.27%E2%80%AFAM.png?alt=media&#x26;token=a1997006-c5b8-4044-9ef2-5faf05ef2cfe" alt=""><figcaption></figcaption></figure>

Fill out below needed fields. The basic form is already created by Twinr. If you want to add more text fields, you can explore through Premium Plan.\
\
**Form Submission Email:** Enter the email address on which you want to get the notification of request to delete

**Form Title:** Title of the form

**Form Fields:**

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FVFA8zDaJINcTvQZgCK82%2FScreenshot%202024-01-05%20at%203.00.22%E2%80%AFPM.png?alt=media&#x26;token=6cb9e27a-b201-46b0-8da5-bd638f96d260" alt="" width="375"><figcaption></figcaption></figure>

* **Name**: This is a text field where user can enter name
* **Email**: This is an email field where user can enter email
* **Comment**: This text area will let user enter the reason for requesting to delete account.

**Button:** Customize the submit button as below.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FFF8CKZ8kY74nQ9MQJcpQ%2FScreenshot%202024-01-05%20at%202.59.48%E2%80%AFPM.png?alt=media&#x26;token=d1be1555-5dd6-426f-b2ee-06622f672f67" alt="" width="375"><figcaption></figcaption></figure>

**Success Message:** You can set the success message on successful form submission.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FwCBa5CrztjUrVK3F1CZz%2FScreenshot%202024-01-05%20at%203.30.17%E2%80%AFPM.png?alt=media&#x26;token=a67b5f8f-4171-4e02-acfa-c49318d45972" alt="" width="375"><figcaption></figcaption></figure>

<mark style="color:red;">If you are on a Premium Plan, you can add extra fields like below:</mark>

1. Click on Add a field and add another Text area, Dropdown or Text field.
2. Text area and Text field are text inputs. Dropdowns can be customized as below.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2F4OzkvPOfX5SxWpLJZfp4%2FScreenshot%202024-01-05%20at%203.52.26%E2%80%AFPM.png?alt=media&#x26;token=982eaf86-d79d-43cd-a942-a8231cdadea5" alt="" width="375"><figcaption></figcaption></figure>

### <mark style="color:green;">How to add account delete button in the app?</mark>

There are 2 ways to add delete button in native navigation bar.

1.) Go to Navigation Bar and add [linker button.](https://help.twinr.dev/screen-customization/tab-bar/navigation-bar/navigation-bar-buttons/linker-button) Add <accountdelete://twinr.dev> in URL field as shown below.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FWCORKuOIsQ1SRiUrMo54%2FScreenshot%202024-01-13%20at%208.23.21%E2%80%AFPM.png?alt=media&#x26;token=1319951e-b0f7-443a-ae48-442b9fbce5ec" alt="" width="375"><figcaption></figcaption></figure>

## <mark style="color:orange;">**`OR`**</mark>

2.) Go to Navigation Bar and add [Custom button](https://help.twinr.dev/screen-customization/tab-bar/navigation-bar/navigation-bar-buttons/custom-button). Select "Execute Script" in Button Actions. Enter Script twinr\_request\_account\_delete() as shown below.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2FHXznyRaVcWPAFrun7r61%2FScreenshot%202024-01-13%20at%208.29.24%E2%80%AFPM.png?alt=media&#x26;token=a7d68cd4-02aa-4bea-ab5d-bce266e60495" alt="" width="375"><figcaption></figcaption></figure>

Once you add either of the button, you can open the form on click of the button.
