deleteLog method

Future<void> deleteLog(
  1. DeleteLogRequest request
)

Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be 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> deleteLog(DeleteLogRequest request) async {
  final url = Uri.https(_host, '/v2/${request.logName}');
  await _client.delete(url);
}