for updating to a new iOS does it delete photos and notes and pictues and also videos
Not usually no, but you should always back up before you upgrade. See iTunes: Backing up, updating, and restoring iOS software
As long as you've backed up to iCloud or the latest iTunes, you should be good.
Retrieving data ...