I was looking at options to add and remove extensions by script and have worked out that process with Bulk Handler for adding pretty much everything.
For deleting an extension I found this awesome script by @lgaetz
Does anyone know if there is something that can be done to delete user manager users?
After seeing the previosu script for removing extensions, I poked at the functions in userman, but it does not seem to be there.
https://git.freepbx.org/projects/FREEPBX/repos/userman/browse/functions.inc/functions.php