How to remove the terminals associated with an application from the configuration