/// <summary> /// Deletes a file. /// <see href="https://api.slack.com/methods/files.delete" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `files:write:user` /// </param> /// <param name='file'> /// ID of file to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DeleteOKResponseModelModel> Delete1Async(this IFiles operations, string token = default(string), string file = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Delete1WithHttpMessagesAsync(token, file, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }