def METHOD_NAME(self):
    self.load_task()
    api_path = "/import/shotgun/remove/task"
    sg_task = {"id": self.sg_task["id"]}
    self.tasks = self.get("data/tasks?shotgun_id=%s" % self.sg_task["id"])
    task = self.tasks[0]
    response = self.post(api_path, sg_task, 200)
    self.assertEqual(response["removed_instance_id"], task["id"])
    self.tasks = self.get("data/tasks?shotgun_id=%s" % self.sg_task["id"])
    self.assertEqual(len(self.tasks), 0)