Well the thing is I dont know what the parameters are. I'm creating a directory and when I remove a subcategory, it needs to remove the subcategories below it. I'm trying to avoid typing them all in manually. With each loop I store the previous subcategory and delete the subcategories below it.
It almost works. If I delete a subcategory, it deletes all the subcategories directly below it, but then it only deletes the subcategories below the last one for the next loop.
Example:
Say I want to delete subcategory Alphabet and it contains subcategories A,B,C. And A,B,C contains subcategories.
My script will delete Alphabet, A, B, C, and all the subcategories for C. So it misses the subcategories for A and B.
Somehow I want it to remember A and B so it will delete the subcategories below them like it does for C.
I dont want to post my code so I think I'll just have to figure it out myself. But I appreciate the extra tools 🙂