Tar – remove all previously extracted files

Command:

tar -tf filename.gz | xargs rm -r

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.