# Uninstallation and Cleanup

## Process Intelligence Agents and Plugins (v4, v5 user, and v5 system scope) using Intune.&#x20;

1. Edit the Process Intelligence app assignments of all Groups in the scope of uninstallation: From Required to Uninstall.<br>

   <figure><img src="/files/qRl0qka6KVJlyuQhX93C" alt=""><figcaption></figcaption></figure>

2. Navigate: Endpoint security > Scripts > Add > Windows 10 and later.<br>

   <div align="left"><figure><img src="/files/2hcB2xcD3X1GtxZZYI5D" alt=""><figcaption></figcaption></figure></div>

3. Add PowerShell script. <br>

   <figure><img src="/files/alaTbzkRCpWV0WPjfnG5" alt=""><figcaption></figcaption></figure>

4. Download and add this .psi file or contact ProcessMaker support to get the required file.&#x20;

{% file src="/files/4ixrqAdbJVkbtkssZTWq" %}

<figure><img src="/files/fV0nDc42zbA9RAvXXCTo" alt=""><figcaption></figcaption></figure>

5. Add the groups needing uninstallation and cleanup.<br>

   <figure><img src="/files/3WrkalotrFYpJaQMN3ux" alt=""><figcaption></figcaption></figure>
6. Typically, Intune runs the scripts latest on machine restart or at forced sync from device management.<br>

   <div align="left"><figure><img src="/files/8exPWLNBQ4jte6otV7WA" alt=""><figcaption></figcaption></figure></div>


---

# 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://processmaker.gitbook.io/process-intelligence/configuration/uninstallation-and-cleanup.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.
