Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.api.datastore.Delete

Deletes one or more entities from the datastore. Use with care!

Deletes the given entity(ies) from the datastore. You can only delete entities from your app. If there is an error, raises a subclass of datastore_errors.Error.

the primary keys of the entities to delete

keys Key or string or list of Keys or strings
config Optional Configuration to use for this request, must be specified as a keyword argument.

TransactionFailedError, if the Delete could not be committed.