3

If you copy and paste some code and accidentally forget to remove sensitive info, is there a way to get rid of that information, so even the revision history doesn't contain it?

marked as duplicate by Laurel, ale, Robert Longson, Monica Cellio, Nicol Bolas Dec 4 '18 at 2:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 13
    if the information is sensitive like a password or API key, you already released it into the wild. Change it now. No, not in 5 minutes: NOW. – Marc Gravell Apr 15 '11 at 11:16
5

Just flag for a moderator, or send an email to team@stackoverflow.com.

  • would a moderator remove certain words? or would that be over asking him? – Andy Apr 15 '11 at 10:51
  • @Andy, if you ask it nice, I'm sure they will do. – Toon Krijthe Apr 15 '11 at 10:52
  • 3
    Moderators cannot erase the history either, for what I know. But the team can delete certain revisions. – Arjan Apr 15 '11 at 11:23
  • @Arjan True, but they can get a dev to do it if you flag it – Michael Mrozek Apr 15 '11 at 13:10
  • Moderators CANNOT permanently delete ANYTHING. – user1228 Apr 15 '11 at 14:53
  • 1
    We can redact sensitive info so it's not part of the public revision history; mods have this ability too. – Tim Post Nov 2 '18 at 15:35
4
  • Firstly edit the post yourself to remove the sensitive information.
  • Then custom flag your post and for for whatever previous revisions need to be redacted to be redacted.

If you don't edit the post yourself you're relying on the mod to determine what should and should not be redacted. Since you know what it is you want removed and that's something you can do yourself, you should do that. Your flag may be rejected if you don't do this if the mod cannot determine what it is that needs redacting.

If your post is a question, check that any existing answers haven't copied your sensitive information, and try if possible not to invalidate any existing answers when you edit your question.

Note that moderator redaction can take some time as it requires two moderators to complete it.

Even if you do all this it's possible that scrapers and archivers have already seen your post and copied it. There's nothing we can do about that I'm afraid, once the genie has escaped it's very hard to get it back in the bottle.

Not the answer you're looking for? Browse other questions tagged .