You could use
dbinfo("procedures","") to get a list of procedures and then get the ones you want to delete with an
arrayfilter. Once you have the list of procedures you want eliminated you can use the
setprocedureoptions statement in a
looparray to delete them. Here is a nasty little routine that will delete all the procedures in a database including the one running the code.
️ Be warned that there is no undo for this and you would have to revert the file to get them back!