Remove a single file from a tar archive

tar --delete -f cygwin.tar lib/libexpat.dll.a

Archive entire folder

tar -zcvf plugins.tar.gz plugins