pub fn delete_docs_store(collection: &CollectionKey) -> Result<(), String>
Expand description
Delete multiple documents from a collection’s store.
This function deletes multiple documents from a collection’s store based on the specified collection key.
It returns a Result<(), String>
where Ok(())
indicates successful deletion, or an error message
as Err(String)
if the deletion encounters issues.
§Parameters
collection
: A reference to theCollectionKey
representing the collection from which to delete documents.
§Returns
Ok(())
: Indicates successful deletion of documents.Err(String)
: An error message if the deletion operation fails.
This function allows you to securely delete multiple documents from a Juno collection’s store.