Removing content of a tar file decompressed in the wrong folder
cd
/
wrong
/
folder
&&
/
bin
/
rm
-f
"
$(tar ztf /path/to/file.tar.gz)
"