diff --git a/cmd/invoke.go b/cmd/invoke.go index 579f8d7..17cd032 100644 --- a/cmd/invoke.go +++ b/cmd/invoke.go @@ -110,6 +110,9 @@ func runInvoke(cmd *cobra.Command, args []string) error { ); err != nil { pterm.Error.Printf("Failed to mark invocation as failed: %v\n", err) } + if err := client.Invocations.DeleteBrowsers(context.Background(), resp.ID, option.WithRequestTimeout(30*time.Second)); err != nil { + pterm.Error.Printf("Failed to cancel invocation: %v\n", err) + } }) })