# cancelRebalanceTask {#cancelrebalancetask}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`cancelRebalanceTask(taskId)`

## Arguments {#arguments}

**taskId** is a STRING scalar or vector indicating the job ID of the rebalance task. It can be obtained with function [getRecoveryTaskStatus](../g/getRecoveryTaskStatus.md).

## Details {#details}

Cancel the rebalance jobs that have been submitted but have not begun execution. This command can only be executed by an administrator on a controller.

