How to delete terminals associated with an application in configuration