Skip to content

Commit 4149947

Browse files
committed
delete collection
1 parent 39d3a89 commit 4149947

File tree

1 file changed

+15
-1
lines changed
  • stac_fastapi/elasticsearch/stac_fastapi/elasticsearch

1 file changed

+15
-1
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/core.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,21 @@ async def update_collection(
524524
async def delete_collection(
525525
self, collection_id: str, **kwargs
526526
) -> stac_types.Collection:
527-
"""Delete collection."""
527+
"""
528+
Delete a collection.
529+
530+
This method deletes an existing collection in the database.
531+
532+
Args:
533+
collection_id (str): The identifier of the collection that contains the item.
534+
kwargs: Additional keyword arguments.
535+
536+
Returns:
537+
None.
538+
539+
Raises:
540+
NotFoundError: If the collection doesn't exist.
541+
"""
528542
await self.database.delete_collection(collection_id=collection_id)
529543
return None # type: ignore
530544

0 commit comments

Comments
 (0)