# Resolving clean-up failures

If the cleanup process fails to completely clean an account at the end of a lease, Sandbox Studio will move the account into a Quarantine state, and email the Administrators notifying them of the issue.

To resolve an account that has failed clean-up:

<div class="orderedlist" id="bkmrk-log-in-to-the-web-ui">1. Log in to the Web UI as an Administrator, and from the left, under **Administration**, select **AWS Accounts**.
2. Confirm the account that has failed the clean-up process. You can preview the error by hovering your mouse over the "<span style="color: rgb(224, 62, 45);">Clean-up error</span>" text[![image.png](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/scaled-1680-/p5limage.png)](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/p5limage.png)

</div>For a detailed view of the error, you need to access the AWS Console and look at the "AccountCleaner" step functions

[![image.png](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/scaled-1680-/Mmnimage.png)](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/Mmnimage.png)

##### See log details:

<div class="orderedlist" id="bkmrk-log-in-to-the-aws-co">1. Log in to the AWS Console using the **Hub account**, and navigate to the **CloudWatch &gt; Logs Insights** page.
2. From the right pane, under Sample queries, select the **SS-Sandbox** group, and from the dropdown, choose the `AccountCleanupLogs` saved query, and **Apply**.

</div>[![image.png](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/scaled-1680-/9o0image.png)](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/9o0image.png)

3\. Change the time frame to match the execution you want to get the logs for:

[![image.png](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/scaled-1680-/uG3image.png)](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/uG3image.png)

4\. Update the query to copy the last cleanup process ID:

[![image.png](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/scaled-1680-/cZdimage.png)](https://docs.sandboxstudiosoftware.com/uploads/images/gallery/2025-10/cZdimage.png)

<p class="callout info">You can get the cleanup process ID from the '**Last Cleanup ReferenceID**'.</p>

Select **Run query** to see related events. The log information is displayed under the *Logs* tab.