deleteBucket method
Deletes a log bucket.
Changes the bucket's lifecycle_state to the DELETE_REQUESTED state.
After 7 days, the bucket will be purged and all log entries in the bucket
will be permanently deleted.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
Future<void> deleteBucket(DeleteBucketRequest request) async {
final url = Uri.https(_host, '/v2/${request.name}');
await _client.delete(url);
}