async def delete_collection(
            id: UUID = Path(
                ...,
                description="The unique identifier of the collection to delete",
            ),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedBooleanResponse:
            """Delete an existing collection.

            This endpoint allows deletion of a collection identified by its
            UUID. The user must have appropriate permissions to delete the
            collection. Deleting a collection removes all associations but does
            not delete the documents within it.
            """
            if id == generate_default_user_collection_id(auth_user.id):
                raise R2RException(
                    "Cannot delete the default user collection.",
                    400,
                )
            await authorize_collection_action(
                auth_user, id, CollectionAction.DELETE, self.services
            )

            await self.services.management.delete_collection(collection_id=id)
            return GenericBooleanResponse(success=True)  # type: ignore
Delete an existing collection.

            This endpoint allows deletion of a collection identified by its
            UUID. The user must have appropriate permissions to delete the
            collection. Deleting a collection removes all associations but does
            not delete the documents within it.
            
py/core/main/api/v3/collections_router.py