def cleanup_deployments(self):
        """
        Delete all deployments created in namespaces associated with this backend
        :return: None
        """
        deployments = self.list_deployments()

        for deployment in deployments:
            if deployment.namespace in self.managed_namespaces:
                deployment.delete()
def cleanup_deployments ( self ) : deployments = self . list_deployments ( ) for deployment in deployments : if deployment . namespace in self . managed_namespaces : deployment . delete ( )
Delete all deployments created in namespaces associated with this backend
        :return: None