code: def has_port_profile_to_delete(self, profile_name, device_id):
          
          count = self.session.query(ucsm_model.PortProfileDelete).filter_by(
              profile_id=profile_name, device_id=device_id).count()
          return count != 0
docs: Returns True if port profile delete table containes PP.