class StatelyDB::CoreClient
def delete(*key_paths)
-
(void)
- nil
Raises:
-
(StatelyDB::Error)
- if the item is not found -
(StatelyDB::Error)
- if the parameters are invalid
Parameters:
-
key_paths
(String, Array
) -- the paths to the items. Max 50 key paths.
def delete(*key_paths) key_paths = Array(key_paths).flatten req = Stately::Db::DeleteRequest.new( store_id: @store_id, schema_id: @schema::SCHEMA_ID, schema_version_id: @schema::SCHEMA_VERSION_ID, deletes: key_paths.map { |key_path| Stately::Db::DeleteItem.new(key_path: String(key_path)) } ) @stub.delete(req) nil end