async def reset(
            collection_id: UUID = Path(...),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedBooleanResponse:
            """Deletes a graph and all its associated data.

            This endpoint permanently removes the specified graph along with
            all entities and relationships that belong to only this graph. The
            original source entities and relationships extracted from
            underlying documents are not deleted and are managed through the
            document lifecycle.
            """
            if not auth_user.is_superuser:
                raise R2RException("Only superusers can reset a graph", 403)

            if (
                # not auth_user.is_superuser
                collection_id not in auth_user.collection_ids
            ):
                raise R2RException(
                    "The currently authenticated user does not have access to the collection associated with the given graph.",
                    403,
                )

            await self.services.graph.reset_graph(id=collection_id)
            # await _pull(collection_id, auth_user)
            return GenericBooleanResponse(success=True)  # type: ignore
Deletes a graph and all its associated data.

            This endpoint permanently removes the specified graph along with
            all entities and relationships that belong to only this graph. The
            original source entities and relationships extracted from
            underlying documents are not deleted and are managed through the
            document lifecycle.
            
py/core/main/api/v3/graph_router.py