sampo_ps remove

Overview

Warning

sampo_ps remove command is deprecated.

sampo_ps remove removes process data.


Synopsis

See sampo_ps command help:

$ sampo_ps remove --help

Examples

You can choose to remove only specific process data using process ID (<process_name>.<process_version>) or process name, or remove all the process data in a ProcessStore.

Suppose there are three processes:
  • foo.c8206325-a02b-4ed7-a565-88aeaf173b0c

  • foo.2d418854-1178-4c73-83c4-1b2568a7ce90

  • bar.a165df99-ce9c-43f6-81a0-d612d4ce36a0


  • Removing specific process data using process ID:

    $ sampo_ps remove -s file:///var/process_store_storage -p foo.c8206325-a02b-4ed7-a565-88aeaf173b0c
    Are you sure to remove process foo.c8206325-a02b-4ed7-a565-88aeaf173b0c? [y/n]: y
    

    If the user enters ‘y’, the process foo.c8206325-a02b-4ed7-a565-88aeaf173b0c is removed.


  • Removing the process data using process name:

    $ sampo_ps remove -s file:///var/process_store_storage -p foo
    Are you sure to remove process foo.c8206325-a02b-4ed7-a565-88aeaf173b0c? [y/n]: y
    Are you sure to remove process foo.2d418854-1178-4c73-83c4-1b2568a7ce90? [y/n]: y
    

    If the user enters ‘y’ for each process, the processes foo.c8206325-a02b-4ed7-a565-88aeaf173b0c and foo.2d418854-1178-4c73-83c4-1b2568a7ce90 are removed.


  • Removing all the process data in a ProcessStore:

    $ sampo_ps remove -s file:///var/process_store_storage -a
    Are you sure to remove process bar.a165df99-ce9c-43f6-81a0-d612d4ce36a0? [y/n]: y
    Are you sure to remove process foo.c8206325-a02b-4ed7-a565-88aeaf173b0c? [y/n]: y
    Are you sure to remove process foo.2d418854-1178-4c73-83c4-1b2568a7ce90? [y/n]: y
    

    If the user enters ‘y’ for each process, all the three processes are removed.