Failure to delete environment

Trying to delete an unused environment.

No variables scoped to this environment.
No deployment targets.

Message is:

There was a problem with your request.

  • Expected a document of type Octopus.Core.Model.Environments.Accounts.Account (Parameter ‘subjectDocument’)

Please advise.

Cheers,

Conor

Hey @Conor_Boyd,

Thanks for reaching out on our community forum. That error indicates there is an account, most likely Azure or AWS, that is scoped to that environment. If you remove the environment scoping from that account or accounts, you should be able to delete the environment.

Let us know if you have any other questions.

Best,
Brent

Yep, that was it, thanks.

You can understand that it wouldn’t have been easy for me to identify that situation from the error message. :wink:

Thanks,

Conor

1 Like

Yeah, I wish the error message was a bit clearer. Anyway, glad you got past it.

Let us know if anything else comes up.

Best,
Brent

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.