This method wraps the native ups_db_erase function. This function erases a Database item. If the item with the specified key does not exist in the Database, error code UpsConst.UPS_KEY_NOT_FOUND is thrown. Note that this method can not erase a single duplicate key. If the key has multiple duplicates, all duplicates of this key will be erased. Use Cursor.Erase to erase a specific duplicate key.
///
///
/// if the key was not found
///
/// if you tried to insert a key in a read-only Database
///
///