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.
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
Use this command with extreme caution.
refer to CAUTION. Read it again.