Copies /home/user/docs to the backup and --delete removes backup files that were deleted in the source, making the destination an exact mirror. This is destructive, since any file only in the backup is gone. Test with -n (dry run) first. Related: rsync -avn --delete previews it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.