async def delete_chunk(
            id: UUID = Path(...),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedBooleanResponse:
            """Delete a specific chunk by ID.

            This permanently removes the chunk and its associated vector
            embeddings. The parent document remains unchanged. Users can only
            delete chunks they own unless they are superusers.
            """
            # Get the existing chunk to get its chunk_id
            existing_chunk = await self.services.ingestion.get_chunk(id)

            if existing_chunk is None:
                raise R2RException(
                    message=f"Chunk {id} not found", status_code=404
                )

            filters = {
                "$and": [
                    {"owner_id": {"$eq": str(auth_user.id)}},
                    {"chunk_id": {"$eq": str(id)}},
                ]
            }
            await (
                self.services.management.delete_documents_and_chunks_by_filter(
                    filters=filters
                )
            )
            return GenericBooleanResponse(success=True)  # type: ignore
Delete a specific chunk by ID.

            This permanently removes the chunk and its associated vector
            embeddings. The parent document remains unchanged. Users can only
            delete chunks they own unless they are superusers.
            
py/core/main/api/v3/chunks_router.py