#NEWLINE# def delete( self , key ) : #NEWLINE# #INDENT# "Remember a key to be deleted during :meth:`commit`.\n\n        :type key: :class:`gcloud.datastore.key.Key`\n        :param key: the key to be deleted.\n\n        :raises: ValueError if key is not complete, or if the key's\n                 ``project`` does not match ours.\n        " #NEWLINE# if key . is_partial : #NEWLINE# #INDENT# raise ValueError ( 'Key must be complete' ) #NEWLINE# #UNINDENT# if ( self . project != key . project ) : #NEWLINE# #INDENT# raise ValueError ( 'Key must be from same project as batch' ) #NEWLINE# #UNINDENT# key_pb = key . to_protobuf ( ) #NEWLINE# self . _add_delete_key_pb ( ) . CopyFrom ( key_pb )