remove method
Removes the snap with the given name
.
Returns the change ID for this operation, use getChange to get the status of this operation.
Implementation
Future<String> remove(String name, {bool purge = false}) async {
var request = <String, dynamic>{'action': 'remove'};
if (purge) {
request['purge'] = true;
}
var encodedName = Uri.encodeComponent(name);
return await _postAsync('/v2/snaps/$encodedName', request);
}