def METHOD_NAME(self):
    """
    Remove the resource podman instance.
    """
    cmd = self.lib.docker_cmd + ["rm", self.container_name]
    out, err, ret = justcall(cmd)
    if ret != 0:
        if "unable to find" in err:
            pass
        elif "no such file" in err:
            pass
        elif "container has already been removed" in err:
            pass
        elif "has dependent containers which must be removed" in err:
            pass
        elif "no container with name" in err:
            pass
        elif "no container with ID or name" in err:
            pass
        elif "removal" in err and "already in progress" in err:
            self.wait_for_removed()
        else:
            self.log.info(" ".join(cmd))
            raise ex.Error(err)
    else:
        self.log.info(" ".join(cmd))
    self.is_up_clear_cache()