diff --git a/src/Sonarr.Api.V3/Series/SeriesEditorModule.cs b/src/Sonarr.Api.V3/Series/SeriesEditorModule.cs index b7f7086fa..8770f0aa0 100644 --- a/src/Sonarr.Api.V3/Series/SeriesEditorModule.cs +++ b/src/Sonarr.Api.V3/Series/SeriesEditorModule.cs @@ -106,7 +106,7 @@ namespace Sonarr.Api.V3.Series foreach (var seriesId in resource.SeriesIds) { - _seriesService.DeleteSeries(seriesId, false); + _seriesService.DeleteSeries(seriesId, resource.DeleteFiles); } return new object(); diff --git a/src/Sonarr.Api.V3/Series/SeriesEditorResource.cs b/src/Sonarr.Api.V3/Series/SeriesEditorResource.cs index a9828a282..e1ca3086b 100644 --- a/src/Sonarr.Api.V3/Series/SeriesEditorResource.cs +++ b/src/Sonarr.Api.V3/Series/SeriesEditorResource.cs @@ -15,6 +15,7 @@ namespace Sonarr.Api.V3.Series public List Tags { get; set; } public ApplyTags ApplyTags { get; set; } public bool MoveFiles { get; set; } + public bool DeleteFiles { get; set; } } public enum ApplyTags