Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm going to switch to a new VPS and I want to completely delete some confidential files/folders from the current VPS (and MySQL content too). The server is running CENTOS 6.

Btw, it's not rm -rf. I want to remove files/folders without recovery (that means erase all inode contents, not just unlink them).

Is there tool to do so?

share|improve this question

marked as duplicate by Dennis Kaarsemaker, cole, Jenny D, Magellan, ewwhite Dec 25 '13 at 4:53

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.

I've found out that wipe ( may be the best way for safe deletion. – hiro Dec 24 '13 at 11:52
up vote 5 down vote accepted

You can take a look at shred, which overwrites files repeatedly, making recovery a lot harder.

share|improve this answer
Make sure to also shred tempfs. – ablackhat Dec 24 '13 at 9:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.