removeUUIDMetadata method

Future<RemoveUuidMetadataResult> removeUUIDMetadata({
  1. String? uuid,
  2. Keyset? keyset,
  3. String? using,
})

Deletes the specified uuid's metadata form the database. If uuid is provied then it deletes metadata for given uuid. In case of null uuid it deletes metadata for PubNub instance's uuid If no uuid is set in PubNub instance default keyset, keyset does not hold uuid and uuid not provided in argument then it throws InvariantException

Implementation

Future<RemoveUuidMetadataResult> removeUUIDMetadata(
    {String? uuid, Keyset? keyset, String? using}) async {
  keyset ??= _core.keysets[using];

  var params = RemoveUuidMetadataParams(keyset, uuid: uuid);

  return defaultFlow<RemoveUuidMetadataParams, RemoveUuidMetadataResult>(
      keyset: keyset,
      core: _core,
      params: params,
      serialize: (object, [_]) => RemoveUuidMetadataResult.fromJson(object));
}