DLTGENOBJ – Delete IBM i Objects using GENERIC values
Powerful and Dangerous. Useful and Risky. Time-Saving and testicle tightening.
Nick Litten.
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

CAUTION
Use this command with extreme caution.
refer to CAUTION. Read it again.