You need to pass the --remove-source-files option to the rsync command. It tells rsync to delete from the sending side files (which means non-directories) that are part of the transfer and have been successfully duplicated on the receiving side. Do not pass the --delete parameter to the rsync command, as it removes extraneous files from the destination directory. Delete source after successful transfer using rsync
Syntax:
rsync --remove-source-files -options /path/to/src/ /path/to/dest rsync --remove-source-files -options /path/to/src/ computerB:/path/to/dest rsync --remove-source-files -av /path/to/src/*.avi computerB:/path/to/dest
Link: http://www.cyberciti.biz/faq/linux-unix-bsd-appleosx-rsync-delete-file-after-transfer/
source share