Skip to content

Client recursive_delete() return value not documented #17266

Closed

Description

@alanwech

Determine this is the right repository

  • I determined this is the correct repository in which to report this feature request.

Summary of the feature request

google/cloud/firestore_v1/client.py::recursive_delete() return value is not documented.
Anyone using the recursive_delete() function will get a number and not understand the meaning of it without digging in the implementation which actually calls another function called _recursive_delete().

Desired code experience

file: client.py

       def recursive_delete(
        self,
        reference: Union[CollectionReference, DocumentReference],
        *,
        bulk_writer: Optional["BulkWriter"] = None,
        chunk_size: int = 5000,
    ) -> int:
        """Deletes documents and their subcollections, regardless of collection
        name.

        Passing a CollectionReference leads to each document in the collection
        getting deleted, as well as all of their descendents.

        Passing a DocumentReference deletes that one document and all of its
        descendents.

        Args:
            reference (Union[
                :class:`@google.cloud.firestore_v1.collection.CollectionReference`,
                :class:`@google.cloud.firestore_v1.document.DocumentReference`,
            ])
                The reference to be deleted.

            bulk_writer (Optional[:class:`@google.cloud.firestore_v1.bulk_writer.BulkWriter`])
                The BulkWriter used to delete all matching documents. Supply this
                if you want to override the default throttling behavior.

        Returns:
            int: The number of documents deleted.
        """

Expected results

recursive_delete() should specify what is the returned int value

API client name and version

No response

Use case

Anyone using the recursive_delete() function that desires to make use of the return value.

Additional context

No response

Activity

  1. added
    type: feature request
    triage me
    on May 27, 2026
  2. added
    priority: p2
    type: docs
    and removed
    type: feature request
    triage me
    on Jun 1, 2026
  3. self-assigned this
    on Nov 16, 2026
  4. added a commit that references this issue on Nov 20, 2026
    5fd0c99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2type: docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions