async def remove_document_from_collection(
            id: UUID = Path(
                ..., description="The unique identifier of the collection"
            ),
            document_id: UUID = Path(
                ...,
                description="The unique identifier of the document to remove",
            ),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedBooleanResponse:
            """Remove a document from a collection.

            This endpoint removes the association between a document and a
            collection. It does not delete the document itself. The user must
            have permissions to modify the collection.
            """
            await authorize_collection_action(
                auth_user, id, CollectionAction.REMOVE_DOCUMENT, self.services
            )
            await self.services.management.remove_document_from_collection(
                document_id, id
            )
            return GenericBooleanResponse(success=True)  # type: ignore
Remove a document from a collection.

            This endpoint removes the association between a document and a
            collection. It does not delete the document itself. The user must
            have permissions to modify the collection.
            
py/core/main/api/v3/collections_router.py