cleanup datastore

This command provides you the ability to clean up the datastore for one or many spaces. With this command, all the old files and INVALID files get deleted.

In some scenarios, the old Shared Nothing files are not deleted, by default. Old Shared Nothing files are the ones that are not used for recovery or the ones that are not needed by a seeder that joins a space that is already in a READY state. These files never get deleted, not even when you use the recover command since this command only handles the files used for recovery and deletes any INVALID file involved in the recovery process. This is the where you need the cleanup datastore command. This command provides you the ability to clean up the datastore for one or many spaces. With this command, all the old files and INVALID files get deleted.

To delete such files on all the seeders or members use the following command:
execute on members cleanup datastore
To delete such files on a specific space, say "myspace", use the following command:
execute on members cleanup datastore "myspace"

Parameters

The following table lists the parameter for this command with a description of the parameter.

cleanup datastore Parameters
Parameter Description
space The name of the space to clean up. This is specified only if you want to clean up the invalid files on a particular space. The name of the space is specified within double quotes.