# JobShard.RemoveJobAsync(string, CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.DurableJobs/JobShard.cs#L175-L177)

```csharp
public Task<bool> 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 that represents the asynchronous operation. The task result contains true if the job was successfully removed, or false if the job was not found.
