Create a file named ModuleToRemove.txt
2. Put the name of each module you want to remove on a separate line in the file if you want to remove multiple models.
1. Make sure you have removed all references for that model.
3. Create a valid deployable package and put the ModuleToRemove.txt in the <package>\AOSService\Scripts folder.
and that should take care of it.