removing the deployment policy when undeploy the application