Delete an invocation
DELETE/invocations/:invocation_id
Delete the given invocation. By default, an invocation is terminated by gracefully cancelling it. This ensures virtual object state consistency. Alternatively, an invocation can be killed which does not guarantee consistency for virtual object instance state, in-flight invocations to other services, etc. A stored completed invocation can also be purged
Request
Path Parameters
Invocation identifier.
Query Parameters
Possible values: [Cancel
, Kill
, Purge
]
If cancel, it will gracefully terminate the invocation. If kill, it will terminate the invocation with a hard stop. If purge, it will only cleanup the response for completed invocations, and leave unaffected an in-flight invocation.
Responses
- 202
- 400
- 403
- 404
- 409
- 500
- 503
Accepted
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
Restate error code describing this error
{
"message": "string",
"restate_code": "string"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://restatedeployment.documentation-beg.pages.dev/invocations/:invocation_id");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());