For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

sp.processor.drop() (mongosh method)

sp.processor.drop()

Deletes a named Stream Processor from the current Stream Processing Workspace.

You can only invoke this command while connected to a stream processing workspace.

This command requires mongosh version ≥ 2.0.

This method is supported in Atlas Stream Processing Workspaces.

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 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()