> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/sharepoint-security-sync/uninstallation.md).

# Uninstallation

Follow the below steps to uninstall **SharePoint Security Sync** easily. Before uninstalling the solution, make sure all related configurations, dependencies, IFrames, and sitemap entries have been removed from your environment.

### Step 1: Delete Entity Configurations and Connector Records

1\) Remove all configurations that were created in your environment.

2\) Before deleting the Entity Configuration records, use **Bulk Record Delete** to delete the SharePoint Security Sync Group records created for that environment. You can use the query below for this purpose.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Folxe35wNvBFs3r5IFwTi%2Fimage.png?alt=media&amp;token=02c569ce-b6b8-494a-99c5-b21925a9e70a" alt=""><figcaption></figcaption></figure>

3\) Use the **Preview Records** option to verify that the correct records are selected before deletion.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FVwfj8N5QbAJH3euzKSIF%2Fimage.png?alt=media&amp;token=cdd89d0b-7827-4e24-915e-9327ac62d939" alt=""><figcaption></figcaption></figure>

4\) Once the group records have been deleted, delete the **Entity Configuration** records.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FKfv1KDiBp6iLX1GZ6a6x%2Fimage.png?alt=media&amp;token=ae0a20f5-4d47-49f5-bd98-bca09a21146a" alt=""><figcaption></figcaption></figure>

5\) After all Entity Configurations have been removed, delete the **Connector** record.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F4EhJMaOXoCGgCrRZgjg6%2Fimage.png?alt=media&amp;token=b9f819a7-03b2-447f-9b33-d0627b0c7d77" alt=""><figcaption></figcaption></figure>

### Step 2: Remove the IFrame

If you have added the Attach2Dynamics IFrame to one or more forms, remove it from all such forms before proceeding with the solution uninstallation.

1\) Navigate to **Power Apps** --> Select **Table** --> Select the Form on which the IFrame was added --> Choose the section, as shown in the screenshot below --> Click **Delete** --> Click **Save** and **Publish**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FoRS2a6ZfVmhuUkjoLZIx%2Fimage.png?alt=media&amp;token=9a5b6a88-11d6-460f-a7c6-96d40fd4b4a1" alt=""><figcaption></figcaption></figure>

### Step 3: Remove Entities from the Sitemap

Open **Advanced Settings** and check whether the SharePoint Security Sync entities are visible in the sitemap, as shown in the screenshot below.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FDq3xryetjq7HAdPCQxvv%2Fimage.png?alt=media&amp;token=c27de3bf-1d5b-4246-a811-5341d0750c79" alt=""><figcaption></figcaption></figure>

If they are present, they will need to be removed as well.

1\) Navigate to [**make.powerapps.com**](http://make.powerapps.com) and open the **Default Solution**.

2\) Open the **Site Map**, and then open the **Power Platform Environment Settings** sitemap.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F9VSGwRbSyaBjAO98AePX%2Fimage.png?alt=media&amp;token=cdcc7451-8a54-45b9-a994-7e853035df5f" alt=""><figcaption></figcaption></figure>

3\) Select the **SharePoint Security Sync Group** area 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%2FMHJSUF3vfRuD1DI67qEV%2Fimage.png?alt=media&amp;token=ebbf67eb-1445-42de-8828-57f8737cfcb3" alt=""><figcaption></figcaption></figure>

4\) Click **Save**, and then **Publish** the sitemap.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQ10Uw1fDDqlrxiZx4SVr%2Fimage.png?alt=media&amp;token=785fdc80-4ef1-4574-af00-ebe1ed7b1cf6" alt=""><figcaption></figcaption></figure>

### Step 4: Uninstall the Solution

Once all configurations, dependencies, IFrames, and sitemap entries have been removed, you should be able to uninstall the solution successfully.

1\) Navigate to **Settings** --> **Solution** --> Select the **SharePoint Security Sync** solution.

2\) Click on the delete button. A pop-up will appear asking for your confirmation. Click on ‘OK’ and the solution will be uninstalled from your environment.
