- Reference >
mongo
Shell Methods >- Database Methods >
- db.killOp()
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 op
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.
Access Control¶
On systems running with authorization
, to kill
operations not owned by the user, the user must have access that
includes the killop
privilege action.