in src/YouTrackSharp/Issues/IssuesService.Attachments.cs [122:144]
public async Task DeleteAttachmentForIssue(string issueId, string attachmentId)
{
if (string.IsNullOrEmpty(issueId))
{
throw new ArgumentNullException(nameof(issueId));
}
var client = await _connection.GetAuthenticatedApiClient();
try
{
await client.IssuesAttachmentsDeleteAsync(issueId, attachmentId);
}
catch (YouTrackErrorException e)
{
if (e.StatusCode == (int)HttpStatusCode.NotFound)
{
return;
}
throw;
}
}