# JobShard.RemoveJobAsync(string, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.jobshard/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.jobshard/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableJobs/JobShard.cs#L260-L277)

```csharp
public Task<DurableJobMutationResult> RemoveJobAsync(string jobId, CancellationToken cancellationToken)
```

Removes a durable job from this shard.

### Parameters

- `jobId` (`string`): The unique identifier of the job to remove.
- `cancellationToken` (`CancellationToken`): A token to cancel the operation.

### Returns

A task containing the durable mutation outcome.
