I’ve been experimenting a lot with Sharepoint claims authentication, ADFS and custom STS. Doing some cool stuff like deploying cross federation authentication, hosting a custom STS in a sharepoint site and using it directly from another sharepoint site leaves a lot of unwanted stuff on you server
So now that my development environment is plastered with half working sharepoint site collections, test certificates and Trusted identity tokken issuers some tidying up is highly needed.
This post is merely meant as a reminder to clean up the mess of the test !
For removing the Trusted identity tokken issuers just start up PowerShell for Sharepoint and write
Remove-SPTrustedIdentityTokenIssuer "Name of your STS"
The call takes several other parameters like a -Whatif command that displays a message that describes the effect of the command instead of executing the command. I like this -whatif ! Good for double checking !!
Of course if you are not so radical as I am but just want to change some of the elements of your STS you can use the following command: