Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Delete all objects of a specific tenant that are flagged for deletion.

This command may be useful, e.g., if objects have been requested to be deleted, and flagged for deletion, but the deletion itself did not take place due to unforeseen circumstances. Such states can be recognized by the maintain-compare command. Using the maintain-delete command will then help to clean up inconsistent object states.

The command runs continuously for a specified amount of time, determines the objects that were flagged for deletion in the Elasticsearch index and deletes them, including all references to the yuuvis® Momentum system that may still exist. Thus, it is ensured all flagged objects are deleted from the Elasticsearch index, and, if necessary, from the database and the repository. In addition, all old versions are deleted too. If no further object is found, the command will stop even if the maximum run time is not yet reached.

The following parameters can be given to the maintain-delete command:

ParameterArgument TypeDescriptionRequiredDefaultExample
--tenant <arg>stringTenant for which flagged objects are to be searched and deleted.yes---tenant default

--target-directory <arg>

string

Target directory for result log.

no---target-directory C:\Users\myusername\ymdeletionlog
--fetch-size <arg>int

Fetch size for Elasticsearch requests. Maximum number of objects included in each Elasticsearch request.

The value must be at least 1 and not bigger than 10000.

no1000--fetch-size 50
--running-time <arg>int

The maximum amount of seconds this command is allowed to run before stopping.

The value must be at least 1 and not bigger than 86400.

no5--running-time 3600
--no-randombooleanSetting this flag will prevent using a random seed to search for flagged objects.nofalse--no-random

Example

In the following example, all objects that are flagged for deletion will be deleted. The job will continuously search for the next 100 (see: --fetch-size) flagged objects and process them, until the maximum running time of 1 hour (see: --running-time) is reached or no further objects are flagged for deletion.

Example
Lt. Commander>maintain-delete --tenant default --running-time 3600 --fetch-size 100
Running delete job for tenant 'default' for 3600s

Any unexpected results will be continuously displayed while the process is running.

  • No labels