You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
sp.processor.drop()
Definition
sp.processor.drop()
Deletes a named Stream Processor from the current Stream Processing Instance.
You can only invoke this command while connected to a stream processing instance.
This command requires
mongosh
version ≥ 2.0.
Compatibility
This method is supported in Atlas Stream Processing Instances.
Syntax
The sp.processor.drop()
method has the following
syntax:
sp.processor.drop()
Command Fields
sp.processor.drop()
takes no fields.
Behavior
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.
Access Control
The user running sp.processor.drop()
must have the
atlasAdmin
role.
Example
The following example stops a stream processor named solarDemo
sp.solarDemo.drop()