OPH_DELETECONTAINER

Description

Type

Data Process.

Behaviour

It removes a container with related dimensions and grids. The container can be deleted logically or physically.

Parameters

  • container: name of the input container.
  • cwd: absolute path corresponding to the current working directory.
  • force: flag used to force the removal of a non-empy container.
    • with “yes” all datacubes inside the container will be deleted
    • with “no” (default) the container will be removed only if it is already empty
  • container_pid: PID of the input container. If it is set, the arguments “container” and “cwd” are negleted.

System parameters

  • exec_mode: operator execution mode. Possible values are async (default) for asynchronous mode, sync for synchronous mode with json-compliant output.
  • ncores: number of parallel processes to be used (min. 1). This operator is not parallel, so the only possible value is 1.
  • nthreads: maximum number of parallel threads to be used (min. 1). Used only when the force argument is set to “yes”.
  • sessionid: session identifier used server-side to manage sessions and jobs. Usually, users don’t need to use/modify it, except when it is necessary to create a new session or switch to another one.
  • objkey_filter: filter on the output of the operator written to file (default=all => no filter, none => no output, deletecontainer => no output).

Examples

Logically remove the empty visible container “container1”:

[OPH_TERM] >>  oph_deletecontainer container=container1;cwd=/session-code;

Arguments

Argument name Type Mandatory Values Default Min/Max-value
container “string” “yes”      
cwd “string” “yes”      
container_pid “string” “no”   “-“  
force “string” “no” “yes|no” “no”  
exec_mode “string” “no” “async|sync” “async”  
ncores “int” “no”   “1” “1” / “1”
nthreads “int” “no”   “1” “1” /
sessionid “string” “no”   “null”  
objkey_filter “string” “no” “all|none|deletecontainer “ “all”