Skip to content

Batch delete based on condition #163

@isuhendro

Description

@isuhendro

Is it possible to delete records in batch using NodeJS based on condition?
Below is sample code for batch delete, but preparing taskKey1, taskKey2... etc is not a elegant as putting condition like size > 25

const keys = [taskKey1, taskKey2];

datastore.delete(keys)
  .then(() => {
    // Tasks deleted successfully.
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions