Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

db.killOp()

On this page

Description

db.killOp(opid)

Terminates an operation as specified by the operation ID. To find operations and their corresponding IDs, see db.currentOp().

The db.killOp() method has the following parameter:

Parameter Type Description
opid number An operation ID.

Warning

Terminate running operations with extreme caution. Only use db.killOp() to terminate operations initiated by clients and do not terminate internal database operations.