# cleanup method

Future<String> cleanup(

1. String distribution

)

Clean up WSL distros. Exporting, deleting, and importing.

## Implementation

    Future<String> cleanup(String distribution) async {
      var instancePath = getInstancePath(distribution);
      var file = instancePath.file('export.tar.gz');

      // Export, remove, and import
      await export(distribution, file);
      await remove(distribution);

      return await import(distribution, instancePath.path, file);
    }