I guess you expect your script to delete whole remote directory after synchronizing. It does not do that. The -delete switch tells it to delete whatever files are not present in the opposite directory.
If you want to delete the remote directory, do it explicitly with rmdir command._________________Martin Prikryl

It is transferring the text files, but it is still giving me a permissions/preserve timestamp error for most of the runs I do. Also, none of the files in the local directory are being deleted afterwards.

I apologize for my inexperience. Any help would be appreciated.
It synchronizes, but generates a fi