def METHOD_NAME(self):
    dinfo = self.info()
    status = dinfo["State"]["Status"]
    killed = False
    if status == "exited":
        try:
            utils.xrun("podman rm", [self.name])
        except KeyboardInterrupt:
            killed = True
        if killed:
            raise KeyboardInterrupt
    else:
        raise DockerError(
            "Container [{}] has not been stopped, cannot remove".format(self.name))