Shell script rm last 1 year file

HI
I am using below script to remove only last year files and also need deleted files i want to keep in log file or history for future reference

But it is giving wrong output please help or let me any other way for example 2016 if am using this command it is removing 2016 and 2017 files also

find . -mtime +365 -exec rm -f {} \;

What happens when you insert "echo" before "rm"? That should give you a dry run of what will be deleted.

or possibly replace rm with ls -l to see the actual dates being selected.