Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /

sp.processor.drop() (mongosh method)

sp.processor.drop()

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

This method is supported in Atlas Stream Processing Workspaces.

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

sp.processor.drop(
{
<options>
}
)

sp.processor.drop() takes a generic, optional <options> document whose fields are passed to the underlying drop command.

sp.processor.drop() deletes the given named stream processor from the current stream processing workspace. 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

On this page