> For the complete documentation index, see [llms.txt](https://documentation.grax.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.grax.com/other/settings/sandbox-refresh.md).

# Sandbox Refresh

GRAX Application connections are impacted each time a Salesforce sandbox refresh takes place, however, getting GRAX up and running again in the new environment is a straightforward process.

## Why would a Sandbox get refreshed?

* To bring down a clean copy of the production environment to allow you to start the next project/test with a fresh and updated environment
* To start a new sandbox due to expiration of previous sandbox
* May be required as part of a software development cycle

{% hint style="info" %}
Please note that your sandbox will have a new org ID after the refresh.
{% endhint %}

## GRAX Sandbox Deployment Policy

Like Salesforce, GRAX monitors sandbox deployments for activity and automatically deletes deployments after a period of 180 days of inactivity. This improves security by cleaning up data, and cost by turning off unused servers. At any time you can deploy a new sandbox backend via [GRAX Platform](https://documentation.grax.com/platform/) or by [contacting GRAX Support](/support/get-support.md).

## Pre-Refresh Requirements

Before the refresh:

* Ensure that the `Admin Email Address` is set to one or more valid email addresses within the `Settings` section of the GRAX Application
* Disconnect Salesforce by [Resetting GRAX](/other/settings/connecting-salesforce.md#resetting-grax)
  * Navigate to `Settings`
  * Expand the `Salesforce` panel
  * Click `Reset GRAX`

<figure><img src="https://4150568565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHKnqFEg4DROpG3KCq3D%2Fuploads%2F54ngAXgSy2iSmO7lcSNc%2Fdisconnect-salesforce-sandbox.png?alt=media&amp;token=add45a96-d585-4c7d-b6f5-9a38dd5d1d72" alt=""><figcaption><p>Destroy the Current Salesforce Connection</p></figcaption></figure>

## Post-Refresh Reconfiguration

### GRAX Application Reconfiguration

* Login to your sandbox in SFDC as the GRAX Integration user
* Navigate to your GRAX App at `[your-grax-domain-and-port]/web` and follow the steps to [Connect Salesforce](/other/settings/connecting-salesforce.md#connecting-a-new-grax-application-to-salesforce)
  * Follow the prompts to Connect with Auto Config and restart Backup
* Navigate to `Settings` within the GRAX Application and expand the `Salesforce` section to confirm that the you are connected to the correct SFDC org with the correct Integration User. You will see a green dot followed by the word `Connected` if the connection is successful. If you need to modify the connection details, click `Update` to reset the connection

### GRAX Managed Package Reconfiguration

The GRAX Managed Package is optional and not all customers use it. If your organization uses the Managed Package, follow the steps below:

* Follow the [GRAX Application Reconfiguration](#grax-sandbox-deployment-policy) steps detailed above
* Navigate to the GRAX tab within SFDC
* [Configure GRAX in Salesforce](/reuse-data/managed-package.md)
* [Configure the Remote Site Setting](/reuse-data/managed-package.md)
* [Add your URL to the Trusted URLs list](/reuse-data/managed-package.md) if you see a banner at the top of the page prompting you to do so
* You can now navigate to the GRAX Application directly from SFDC via the `Schedule` and `Search` tabs
