toolsOzoneQueueDeleteQueue function
Delete a moderation queue. Optionally migrate reports to another queue.
Implementation
Future<XRPCResponse<QueueDeleteQueueOutput>> toolsOzoneQueueDeleteQueue({
required int queueId,
int? migrateToQueueId,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneQueueDeleteQueue,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'queueId': queueId,
if (migrateToQueueId != null) 'migrateToQueueId': migrateToQueueId,
},
to: const QueueDeleteQueueOutputConverter().fromJson,
);