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

« Previous Version 4 Next »

Delete all objects of a specific tenant which have a deletion flag.

This command may be useful, e.g., if a deletion of objects was requested and those objects were flagged for deletion, but this deletion did not happen due to unforeseen circumstances. Such states can be recognized by the maintain-compare Command. Using the maintain-delete command will help to clean up those inconsistent object states.

The command will continuously run for a specified amount of time, determines the objects that were flagged for deletion in Elasticsearch index and deletes them, including all references into the yuuvis® Momentum system that may still exist. Thus, it is ensured all flagged objects are deleted from 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 running time is not yet exceeded.

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

ParameterArgument TypeDescriptionRequiredDefaultExample
--tenant <arg>stringTenant for which flagged objects should 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) was exceeded or there is no additional object 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