DLTGENOBJ – Delete Generic Object

Command

Powerful and Dangerous. Useful and Risky. Time Saving and testicle tightening. The DLTGENOBJ command let use delete all objects that match a generic file name mask in one deft swoop.

EXAMPLE – Deleting all TEST* Objects in QTEMP

To delete all objects beginning with TEST in lib(QTEMP):

DLTGENOBJ OBJ(QTEMP/TEST) TYPE(*ALL)

I created a variety of object types in my QTEMP library all beginning with the TEST:

When I run the generic delete command, with extreme caution, I delete TEST* in QTEMP for all object types:

dltgenobj qtemp/test* *all                          
Deleting completed normally: 00011 objects deleted
11 TEST* objects have been deleted

CAUTION

Use this command with extreme caution.

refer to CAUTION. Read it again.