Docs Menu
Docs Home
/
MongoDB Manual
/ / /

sp.processor.drop()

On this page

  • Definition
  • Syntax
  • Command Fields
  • Behavior
  • Access Control
  • Example
  • Learn More
sp.processor.drop()

New in version 7.0: Deletes a named Stream Processor from the current Stream Processing Instance.

The sp.processor.drop() method has the following syntax:

sp.processor.drop()

sp.processor.drop() takes no fields.

sp.processor.drop() deletes the given named stream processor from the current stream processing instance. If you invoke this command on a currently running stream processor, it stops that processor before deleting it.

The user running sp.processor.drop() must have the atlasAdmin role.

The following example stops a stream processor named solarDemo

sp.solarDemo.drop()
  • Manage Stream Processors

Back

sp.process