> ## Documentation Index
> Fetch the complete documentation index at: https://dshtauri.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Data management

> Check the data directory and disk usage, migrate to a new location, or roll back.

Open **Running → Data Directory** in the desktop title bar to check the current location and disk usage. See [Profiles and cores](./profiles-and-cores) for profile configuration and migration, or [Data, privacy, and security](../help/data-and-privacy) for default data paths.

<Frame>
  <img src="https://mintcdn.com/dshtauri/VRDueE5oZbOIi7m2/images/data-management-overview.png?fit=max&auto=format&n=VRDueE5oZbOIi7m2&q=85&s=6538fda830e1f17a04104e10d2877384" alt="Data Directory page showing the current location, DSH_HOME, migration controls, and disk usage" width="2147" height="1265" data-path="images/data-management-overview.png" />
</Frame>

## Migrate the data directory

Release builds on Windows, macOS, and Linux support migration. Debug always uses `~/.dsh.dev` and does not support this operation.

1. Save your work and close other desktop, CLI, and Web clients using the directory.
2. Choose the destination's parent folder. Enter a folder name or leave it blank to keep the current name. Select **Dry run** and check the source, destination, and free space.
3. Select **Start migration** and confirm. The app stops the local service, copies and verifies data, renames and retains the old directory, then updates the user-level `DSH_HOME`.
4. Wait for completion and verify sessions, profiles, and plugins. Reopen existing terminals to pick up the new variable.

<Frame>
  <img src="https://mintcdn.com/dshtauri/VRDueE5oZbOIi7m2/images/data-management-migration.png?fit=max&auto=format&n=VRDueE5oZbOIi7m2&q=85&s=19a39ad7c94935426be2e69218439303" alt="Data directory migration confirmation dialog with dry-run results" width="2147" height="1265" data-path="images/data-management-migration.png" />
</Frame>

## Roll back to the old location

Select an old directory under **Roll back to the old location** on the same page and confirm. Current data is not deleted. If the old location contains a nonempty directory, that directory is renamed and retained first. Rollback does not merge data from the two locations.

Do not delete retained directories before verification. If migration fails, record the error and check the source and destination; see [Troubleshooting](../help/troubleshooting).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.