/// <summary> /// Deletes the card. /// </summary> /// <param name="ct">(Optional) A cancellation token for async processing.</param> /// <remarks> /// This permanently deletes the card from Trello's server, however, this object will remain in memory and all properties will remain accessible. /// </remarks> public async Task Delete(CancellationToken ct = default) { await _context.Delete(ct); if (TrelloConfiguration.RemoveDeletedItemsFromCache) { TrelloConfiguration.Cache.Remove(this); } }
/// <summary> /// Deletes the card. /// </summary> /// <remarks> /// This permanently deletes the card from Trello's server, however, this object will /// remain in memory and all properties will remain accessible. /// </remarks> public void Delete() { _context.Delete(); TrelloConfiguration.Cache.Remove(this); }