Tar – remove all previously extracted files

Command:

tar -tf filename.gz | xargs rm -r