There is a way, using the command line, to add and remove UDIDs from an iOS Adhoc provisioning profile?
You would have to regenerate the profile, but you should be able to automate the generation of them using fastlane: https://fastlane.tools