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 StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Future<void> deleteBucket(DeleteBucketRequest request) async {
final url = Uri.https(_host, '/v2/${request.name}');
await _client.delete(url);
}