Chris,

Your code runs okay. I would need to build in some other checks and would eventually actually have it read a file and do a while loop on the file after I verified the accounts I was sure I wanted deleted.

We have some systems also that may escape this simple checking.

Bottom line I would not trust any automated script to do deletes before I physically verified the list. Then I'd have it read back into the script and do the deletes.