'Deletes unused indexes.'

def VacuumIndexes(self):

    if self.args:
        self.parser.error('Expected    a    single    <directory>    argument.')
    index_defs = self._ParseIndexYaml(self.basepath)
    if (index_defs is None):
        index_defs = datastore_index.IndexDefinitions()
    rpcserver = self._GetRpcServer()
    vacuum = VacuumIndexesOperation(rpcserver, self.options.force_delete)
    vacuum.DoVacuum(index_defs)
