# Uninstall

{% hint style="danger" %}

## User Impact

Before uninstalling any Managed Package, always make sure that your business and users are not actively depending on it. Uninstalling a package requires removing all components, custom code, and custom objects associated with that package. Proceed at your own risk.
{% endhint %}

When you are ready to remove the first-generation package from your org, the steps below can help. If you become stuck or encounter unexpected issues while following these steps, feel free to [contact our Support team](/support/get-support.md) for assistance.

{% stepper %}
{% step %}

### Log in to Salesforce

Log in to your Salesforce org via your standard login process as a user with the permissions to uninstall Managed Packages. The standard "System Admin" profile is sufficient.
{% endstep %}

{% step %}

### Try Uninstalling the Package

Open the "Setup" menu, then open "Installed Packages" via the Quickfind search.

Find "GRAX" in the packages list, and click "Uninstall."

Check the confirmation checkbox on the next page, and click "Uninstall."

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

If the uninstall is successful, you will receive a confirmation email. If you receive this email, you are done with this guide and do not need to continue reading. If your uninstall failed, keep reading.

On the first attempt, it is likely that you will receive errors about components or other resources in the package still being used somewhere. A few common categories of these issues (and their solutions) are:

* Users still assigned permission sets
  * Remove the package permission sets (those that start with "GRAX - ") from all users
* Lightning Web Components still present in page layouts
  * Remove the components from the page layouts
* Apex classes still referenced in Scheduled Jobs
  * Delete the "GRAXScheduledWorker" jobs from your "Scheduled Apex Jobs" list

Try to fix as many of these issues as possible, then proceed.
{% endstep %}

{% step %}

### Try Uninstalling the Package Again

Now that you've resolved all possible issues that appeared during the previous attempt, try uninstalling the package again using the original steps.

If you encounter more issues, resolve them and repeat this process until the uninstall is successful. If you come across a reported issue that you cannot resolve, feel free to [reach out to our Support team](/support/get-support.md) for assistance.
{% endstep %}
{% endstepper %}


---

# 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://documentation.grax.com/reuse-data/managed-package/first-generation/uninstall.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.
