# Uninstallation

To uninstall the solution from Power Apps, follow the simple steps given below:

### Check Dependencies (If Uninstallation Fails)

1. Go to [make.powerapps.com.](https://make.powerapps.com/)
2. Click on **Solutions**.
3. Select **WhatsApp4Dynamics** solution.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2XkqNy1aXxxsvdZPPUBt%2F1%20Open%20power%20apps.png?alt=media&#x26;token=204baa25-599a-40d9-8246-a4303f827182" alt=""><figcaption></figcaption></figure>

4. Click **Show Dependencies**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FYIdPirjNpYgDZsHbBI3P%2F2%20click%20on%20show%20dependencies.png?alt=media&#x26;token=6874c0c2-f533-4f53-9b85-3ce104d29dee" alt=""><figcaption></figcaption></figure>

5. Review the listed dependencies and remove them using the steps provided below.
6. Retry uninstalling the solution.

### Step 1: Delete Record Types One by One

1. Open the WhatsApp4Dynamics app.
2. Navigate to **Configuration** → **Record Type**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FHkO1g1l2FnoXWG8a5Frq%2F3%20Select%20recordtype.png?alt=media&#x26;token=91f4c809-b2c8-4add-ae6f-cc76a8adf110" alt=""><figcaption></figcaption></figure>

3. Select each record type created for the solution.
4. Click Delete and confirm.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FIfiz2DeDZ7oj3r8lCDhP%2F4%20click%20on%20delete%20record%20type.png?alt=media&#x26;token=90daaad5-8759-4725-8f70-d3ebb6e780c9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FCbpH2gwly9z8yCaIFykR%2F5%20click%20on%20delete%20button.png?alt=media&#x26;token=4b203143-2224-4832-bcff-93940230db9d" alt=""><figcaption></figcaption></figure>

5. Repeat until all record types are removed.

### Step 2: Remove Configuration Records

1. Go to Configuration within the app.
2. Select and delete any remaining configuration records related to WhatsApp4Dynamics.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQclagDjgTOrR3qx3MF9X%2F-5%20select%20and%20delete%20config.png?alt=media&#x26;token=92498b95-03ec-4ff1-ba01-a57f3001fb54" alt=""><figcaption></figcaption></figure>

### Step 3: Deactivate and Delete Processes

1. Navigate to **Processes** (Workflows/Background Processes).
2. Deactivate any processes related to WhatsApp4Dynamics.
3. Once deactivated, delete them.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FBpxE57LQVmjvrLTZSEir%2F-6%20deactivate%20and%20delete%20process..png?alt=media&#x26;token=7ffa0ce7-d0b8-4cf6-9bc4-c48f7a0c64ad" alt=""><figcaption></figcaption></figure>

### Step 4: Remove Custom Automations

1. Check for any Power Automate flows or custom workflows created for WhatsApp4Dynamics.
2. Turn them off.
3. Delete them permanently.

### Step 5: Remove PCF Controls (If Applicable)

1. If the WhatsApp chat UI (PCF control) was added to any out-of-the-box or custom entities, open those entities.
2. Remove the PCF control from the form.
3. **Save and publish** the changes.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fk3H25LP0RtW9HiDrBUoI%2F-7%20delete%20pcf%20control.png?alt=media&#x26;token=5c117001-a761-4748-98a4-faffa46f5f1c" alt=""><figcaption></figcaption></figure>

### Step 6: Turn Off Marketing Toggle (If Enabled)

1. Navigate to the **License page** and ensure the **Enable Marketing** toggle is turned off.
2. Save the changes.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F1VIJbO2N8QPDg05HxiiK%2F-8%20Turn%20off%20Enable%20marketing%20toggle%20if%20enable.png?alt=media&#x26;token=d14db401-7a08-4002-8397-cac306c198e3" alt=""><figcaption></figcaption></figure>

### Step 7: Delete WhatsApp4Dynamics

1. Navigate to **Solutions**.
2. Select the WhatsApp4Dynamics and click **Delete**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Ft239hyjPLm2J8AhhDFBT%2F9%20select%20product%20and%20click%20on%20delete.png?alt=media&#x26;token=2e5e0dc8-f362-45bd-8e3c-e3770a9137b5" alt=""><figcaption></figcaption></figure>
