delete method

Delete a video on Cloudflare Stream. On success, all copies of the video are deleted. Documentation: https://api.cloudflare.com/#stream-videos-delete-video

Implementation

Future<CloudflareHTTPResponse> delete({
  /// CloudflareStreamVideo identifier
  String? id,

  /// CloudflareStreamVideo with the required identifier
  CloudflareStreamVideo? video,
}) async {
  assert(!isBasic, RestAPIService.authorizedRequestAssertMessage);
  assert(id != null || video != null, 'One of id or video must not be null.');
  id ??= video?.id;
  final response = await getSaveResponse(
      service.delete(
        id: id!,
      ),
      parseCloudflareResponse: false);
  return response;
}