예제 #1
0
 /// <summary>
 /// Delete the given episode file
 /// </summary>
 /// <param name="id">Episode file ID</param>
 /// <returns></returns>
 public async Task DeleteEpisodeFile(int id)
 {
     await _sonarrClient.Delete($"/episodeFile/id={id}");
 }
예제 #2
0
 /// <summary>
 /// Deletes an item from the queue and download client.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="blacklist">if set to <c>true</c> blacklist item after deletion.</param>
 /// <returns></returns>
 public async Task DeleteFromQueue(int id, [Optional] bool blacklist)
 {
     await _sonarrClient.Delete($"/queue/id={id}{(blacklist ? $"?blacklist={blacklist}" : "")}");
 }
예제 #3
0
 /// <summary>
 /// Delete the series with the given ID
 /// </summary>
 /// <param name="id">Series ID</param>
 /// <param name="deleteFiles">if set to <c>true</c> the series folder and all files will be deleted when the series is deleted.</param>
 /// <returns></returns>
 public async Task DeleteSeries(int id, [Optional] bool deleteFiles)
 {
     await _sonarrClient.Delete($"/series/id={id}{(deleteFiles ? $"?deleteFiles={deleteFiles}" : "")}");
 }