- Reference >
- Database Commands >
- Sharding Commands >
- abortReshardCollection
abortReshardCollection¶
On this page
Definition¶
-
abortReshardCollection¶ New in version 5.0.
During a resharding operation, you can abort the operation with the
abortReshardCollectioncommand.You can abort a resharding operation at any point until the commit phase. If the resharding operation has reached the commit phase before you run the
abortReshardCollectioncommand, the command returns an error.The
mongoshprovides a wrapper methodsh.abortReshardCollection().
Syntax¶
The command has the following syntax:
Example¶
Abort a Resharding Operation¶
The following example aborts a running resharding operation on the sales.orders collection:
See also