jackfh 0 Newbie Poster

I'm trying to come with a script that will delete user profiles either at logoff or at certain times, say once a week. This is a lab environment and all the accounts I want to delete begin with an 'S' and have 8 numbers trailing, such as 'S12345678'. Not having any luck on this one. Tried 'delprof' with no luck. Any help would be apreciated!