Method DeleteAsync
DeleteAsync(string, DeleteOptions)
Removes one key at a time, with optional write lock validation. If the given key doesn't exist, there is no feedback in place to inform a developer about it. If a write lock is provided and it does not match with the existing write lock, will throw a conflict exception. There is no client validation on the arguments for this method. Throws a CloudSaveException with a reason code and explanation of what happened.
Declaration
Task DeleteAsync(string key, DeleteOptions deleteOptions = null)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to be removed from the server |
DeleteOptions | deleteOptions | The optional options object for specifying the write lock to check conflict in the server |
Returns
Type | Description |
---|---|
Task |
Exceptions
Type | Condition |
---|---|
CloudSaveException | Thrown if request is unsuccessful. |
CloudSaveValidationException | Thrown if the service returned validation error. |
CloudSaveRateLimitedException | Thrown if the service returned rate limited error. |
CloudSaveConflictException | Thrown if the service returned write lock conflict error. |