src/vs/code/electron-browser/sharedProcess/contrib/storageDataCleaner.ts/StorageDataCleaner/cleanUpStorage
class StorageDataCleaner:	private async cleanUpStorage(): Promise<void> {
		this.logService.info('[storage cleanup]: Starting to clean up storage folders.');

		try {

			// Leverage the backup workspace file to find out which empty workspace is currently in use to
			// determine which empty workspace storage can safely be deleted
			const contents = await Promises.readFile(this.backupWorkspacesPath, 'utf8');

			const workspaces = JSON.parse(contents) as IBackupWorkspacesFormat;
			const emptyWorkspaces = workspaces.emptyWorkspaceInfos.map(emptyWorkspace => emptyWorkspace.backupFolder);

			// Read all workspace storage folders that exist
			const storageFolders = await Promises.readdir(this.environmentService.workspaceStorageHome.fsPath);
			await Promise.all(storageFolders.map(async storageFolder => {
				if (storageFolder.length === StorageDataCleaner.NON_EMPTY_WORKSPACE_ID_LENGTH) {
					return;
				}

				if (emptyWorkspaces.indexOf(storageFolder) === -1) {
					this.logService.info(`[storage cleanup]: Deleting storage folder ${storageFolder}.`);

					await Promises.rm(join(this.environmentService.workspaceStorageHome.fsPath, storageFolder));
				}
			}));
		} catch (error) {
			onUnexpectedError(error);
		}
	}