Deleting User Specific Objects

At one time or another for various reasons an organization may need to delete objects associated with a specific user(internal, customer, department, supplier, etc.) The attached is a tool that can be used to delete objects, and their associated objects one level down, that are owned by a specific user.

This is a standalone JPO that should be executed command line by an Admin via an MQL session. It can be used as is, or can easliy be modified to meet more specific needs.

Below is the usage.

USAGE:
Use to delete user specific objects, and their associated objects one level down.

exec prog DeleteObjectsByOwner -type <TYPE> -user <USERNAME> [-name <NAME>] [-state <STATE>] 
                                           [- vault <vault>] [-checkMode <boolean>]

      -type = Business type of objects to delete.(e.g. 'Part')
      -user = UserName of owner of objects.(e.g. 'Test Everything')
      -name = [Optional] Name of object to search.(e.g. 'ABC*')
              Defaults to '*'.
     -state = [Optional] State of object to search.(e.g. 'In Work')
              A single state excepted. Does not except comma delimited list.
     -vault = [Optional] Vault where objects are stored.(e.g. 'eService Production')
              Defaults to 'eService Production'.
 -checkMode = [Optional] Defaults to 'false'.
              If set to true, objects will not be deleted.
              Instead, objects to be deleted are written to log file for verification.
-h or -help = Print usage


​​​​​​​

​​​​​​​