Stay organized with collections
Save and categorize content based on your preferences.
Clean up your local machine
After you've completed the migration, to clean up your local machine, you can
remove the directory that contains the copy of the source machine file system.
This page describes how you can clean up your local machine.
Clean up a Linux machine
To remove the directory that contains the copy of the source machine file
system from your local machine, run the following command:
./m2c cleanup --source PATH_TO_COPIED_FILESYSTEM
Replace PATH_TO_COPIED_FILESYSTEM with the path to the
copied file system directory.
Clean up a Windows machine
To clean up a Windows machine, you need to manually remove all the disk images
that you have on your local machine.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Clean up your local machine\n===========================\n\nAfter you've completed the migration, to clean up your local machine, you can\nremove the directory that contains the copy of the source machine file system.\n\nThis page describes how you can clean up your local machine.\n\nClean up a Linux machine\n------------------------\n\nTo remove the directory that contains the copy of the source machine file\nsystem from your local machine, run the following command: \n\n ./m2c cleanup --source \u003cvar translate=\"no\"\u003ePATH_TO_COPIED_FILESYSTEM\u003c/var\u003e\n\nReplace \u003cvar translate=\"no\"\u003ePATH_TO_COPIED_FILESYSTEM\u003c/var\u003e with the path to the\ncopied file system directory.\n| **Note:** The `cleanup` command is supported on Linux machines only.\n\nClean up a Windows machine\n--------------------------\n\nTo clean up a Windows machine, you need to manually remove all the disk images\nthat you have on your local machine.\n\nWhat's next\n-----------\n\n- Learn how to [manage usage statistics](/migrate/containers/docs/m2c-cli/usage-statistics)."]]