I added confidential information to a post on a Stack Exchange by accident.
How can I purge the information?
I added confidential information to a post on a Stack Exchange by accident.
How can I purge the information?
You can't do this yourself. It will be a permanent part of the revision history of a post.
You can however flag for moderator attention, or in the worst case contact the team (using the "contact us" link at the bottom) and point them at the information. They can then either purge the revision, or permanently make the information go away, or contact those who can do so.
(update) Edit it out from your post, then flag the post for the mods, roughly with this: "Rev 3 and 4 contains accidentally private information what I didn't want to disclose. May I ask for a redact?"
Roughly in some hours, the problematic part will retroactively disappear from the post history. This will be a permanent change in the SE database, this is why only mods can do that (it is not trivial even for them).
Also the SE won't have access to the original content any more, at least not in their ordinary ways. Doing things like these - changing things retroactively - is generally not a good practice for anything. Also git dislikes if you want to change commits retroactively. So this is a bigger ask than it seems, and it requires a good reason.
You should do the edit to make for the mods obvious, what exactly you want to remove.
In the around 3 cases as I had to that, all were done without any trouble and my flags where marked as "helpful".
Evidently you should do it only in really problematic cases. For example, if you accidentally copy-pasted a configuration fragment with a private data of your customer.
In lesser problematic cases - for example, you insulted someone in a heated debate, and cooled down you would make it back - don't do it. In similar cases, it is better to hope, that only a few people will actually read the previous versions of your post.