diff --git a/source/Octopus.Client/Model/RunbookRunParameters.cs b/source/Octopus.Client/Model/RunbookRunParameters.cs
deleted file mode 100644
index a27648de8..000000000
--- a/source/Octopus.Client/Model/RunbookRunParameters.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace Octopus.Client.Model
-{
- public class RunbookRunParameters
- {
- ///
- /// Parameter class for marshalling params between OctopusCLI and Octopus Server
- /// This class is used to facilitate backwards compatibility while extending /runbooks/{id}/run"
- ///
- public RunbookRunParameters()
- {
- FormValues = new Dictionary();
- SpecificMachineIds = new string[0];
- ExcludedMachineIds = new string[0];
- EnvironmentIds = new string[0];
- TenantTagNames = new string[0];
- TenantIds = new string[0];
- SkipActions = new string[0];
- }
-
- public bool UseDefaultSnapshot { get; set; } = true;
-
- public string RunbookId { get; set; }
- public string ProjectId { get; set; }
- public string RunbookSnapshotNameOrId { get; set; }
- public string EnvironmentId { get; set; }
- public string[] EnvironmentIds { get; set; }
- public bool ForcePackageDownload { get; set; }
- public bool? UseGuidedFailure { get; set; }
- public string[] SpecificMachineIds { get; set; }
- public string[] ExcludedMachineIds { get; set; }
- public string TenantId { get; set; }
- public string[] TenantIds { get; set; }
- public string[] TenantTagNames { get; set; }
- public string[] SkipActions { get; set; }
- public DateTimeOffset? QueueTime { get; set; }
- public DateTimeOffset? QueueTimeExpiry { get; set; }
- public Dictionary FormValues { get; set; }
-
- public static RunbookRunParameters MapFrom(RunbookRunResource runbookRun)
- {
- return new RunbookRunParameters
- {
- UseDefaultSnapshot = true,
- RunbookId = runbookRun.RunbookId,
- ProjectId = runbookRun.ProjectId,
- EnvironmentId = runbookRun.EnvironmentId,
- ForcePackageDownload = runbookRun.ForcePackageDownload,
- UseGuidedFailure = runbookRun.UseGuidedFailure,
- SpecificMachineIds = runbookRun.SpecificMachineIds.ToArray(),
- ExcludedMachineIds = runbookRun.ExcludedMachineIds.ToArray(),
- TenantId = runbookRun.TenantId,
- SkipActions = runbookRun.SkipActions.ToArray(),
- QueueTime = runbookRun.QueueTime,
- QueueTimeExpiry = runbookRun.QueueTimeExpiry,
- FormValues = runbookRun.FormValues
- };
- }
- }
-}
\ No newline at end of file
diff --git a/source/Octopus.Client/Repositories/Async/RunbookRepository.cs b/source/Octopus.Client/Repositories/Async/RunbookRepository.cs
index 82cdb26ca..d7018f340 100644
--- a/source/Octopus.Client/Repositories/Async/RunbookRepository.cs
+++ b/source/Octopus.Client/Repositories/Async/RunbookRepository.cs
@@ -47,11 +47,6 @@ public Task GetPreview(DeploymentPromotionTarget prom
}
public Task Run(RunbookResource runbook, RunbookRunResource runbookRun)
- {
- return Run(runbook, RunbookRunParameters.MapFrom(runbookRun));
- }
-
- public Task Run(RunbookResource runbook, RunbookRunParameters runbookRun)
{
return Client.Post