To mirror a source directory to a destination and remove files from the destination that no longer exist in the source,…