tar -f file.tar --delete dir1/*
## Use --remove-files NOT --delete to erase the source files
tar -cf tarball-name.tar /path/to/save --remove-files
## Usee && to only process rmdir if tar exits without errors
tar -cf tarball-name.tar /path/to/save --remove-files && rmdir /path/to/save