---
id: cancel-operation
title: "Cancel a pending async operation"
description: "Cancel a pending async operation by removing it from the queue"
sidebar_label: "Cancel a pending async operation"
hide_title: true
hide_table_of_contents: true
api: eJy9VE1v2zAM/SsCTxugxWmwk29dG2AB2rVYs12CoFBkOlYrS64kpzMM/fdBsmMnzdph2LBTHPLpkXz8aCFDy42onNAKUrhgiqMkjFSoMqG2hNlGcaIrNCxAyKYhBku9Cz7hSG50SVyB5KnGGoHCgFxkkAKPdPeDEShUzLASHRoL6aoFxUqEFDZMPd6LDCiIkEbFXAEUDD7VwmAGqTM1UrC8wJJB2oJrqvDMOiPUFig44WQwfGLqkSwy8J4O3EP0fxHgZlAiRlkHDltpZdGGZ7PpNPwci3pXc47W5rUkX3swUOBaOVQuwFlVScEjbfJgw5t2TMV77yl8nM1Oib8zKbIum7kx2vwBK1Qm6OJEl3eGjgkZvoTD0p4CpOZHXqaamzx28FipoHtvEcrhFg34tad7GzOGNQdyXukuQfAUSrt9S/lrtJZtEQay16FRDLIMXj/G1psH5O6o66tYVxe6x61HmlHeTt3Xy7js5PtVsD3k83J5e0LY9bZEV+iwLhlKdBiXxBWQQrI7SzLMWS1dEjbEJm2/KD4Zptom7eGE+zjiuY767GMLlVmxLRwJWZDz2wXQF6O0d5BcGzLg+4FiPA5Uv0/XWGrTkLvGOiyDKFJwDDM9Qs4rxgsks8kUKNRGQgqFc5VNk+T5+XnConuizTbp39rkanEx/3I3/zCbTCeFK2Ug3qGxXXpnk+lkGkyVtq5k6iDW707Wy1LbcUf+/tz13Xb4wyWVZCIOciy47Zu4gt1ZTCG2EWg8dRYopOPNG3sZ7Ef3ak2h0NYFnrbdMIvfjPQ+mJ9qNA2kqzWFHTOCbUKrVy1kwobvDNKcSYtvVP/ua78I78lrpeznXYVp3zFZh39A4RGbg6sdlv4/hj0SKF6XAlmGJpbfQc45x8odPD45huF0D4t3Ob+aL+fg/U/oHmg6
sidebar_class_name: "delete api-method"
info_path: docs/api-reference/endpoints/hindsight-http-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Cancel a pending async operation"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/v1/default/banks/{bank_id}/operations/{operation_id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Cancel a pending async operation by removing it from the queue

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"bank_id","in":"path","required":true,"schema":{"type":"string","title":"Bank Id"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}
>
  
</StatusCodes>


      