def delete_table(table_name):
    """Mainly for testing."""
    to_delete = [
        make_key(table_name, rec['id'])
        for rec in read_by_indexes(table_name, [])
    ]

    with DatastoreTransaction() as tx:
        tx.get_commit_req().mutation.delete.extend(to_delete)
def delete_table ( table_name ) : to_delete = [ make_key ( table_name , rec [ 'id' ] ) for rec in read_by_indexes ( table_name , [ ] ) ] with DatastoreTransaction ( ) as tx : tx . get_commit_req ( ) . mutation . delete . extend ( to_delete )
Mainly for testing.