deleteBook method

Future<Empty> deleteBook(
  1. String volumeId, {
  2. String? $fields,
})

Remove the book and its contents

Request parameters:

volumeId - The id of the book to be removed.

$fields - Selector specifying which fields to include in a partial response.

Completes with a Empty.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<Empty> deleteBook(
  core.String volumeId, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'volumeId': [volumeId],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'books/v1/cloudloading/deleteBook';

  final response_ = await _requester.request(
    url_,
    'POST',
    queryParams: queryParams_,
  );
  return Empty.fromJson(response_ as core.Map<core.String, core.dynamic>);
}