In the top left of CCleaner it has Custom Clean, click it and you should see two tabs, Windows and Applications. Click on both the Windows and the Applications tab. This is where you tell it to remove or keep cookies, passwords, etc. for your applications. Uncheck the box that states Saved Passwords, Network Passwords, and Cookies if you want to keep them. CCleaner is a robust cleaning tool. It is wise to click on each of the tabs and check the items you want it to clean and uncheck the items you want to save. The application isn't psychic, it does exactly what you have it configured to do. Once it deletes something it is deleted.
Personally, I delete cookies since they track your internet usage but keep passwords. I mainly use the Custom Clean as that used to be the main clean feature before they created Health Check. I have CCleaner auto delete everything but Saved Password and Crash Reports for my browsers. I have all the check boxes checked in Windows Store, Applications, and Multimedia. I have Windows Defender unchecked along with DirectX Shader Cache.
Their help files are informative and they contain how to videos if you are unsure of the settings. https://support.piriform.com/hc/en-us/sections/360011321332-Using-CCleaner-for-Windows
Based on your comment I would recommend reading (or watching the video) the "How do I use Custom Clean?" link.
They have another product called Recuvia. It finds and restores deleted files. The challenge is that it cannot find a deleted file if Windows has written over the space the deleted item was in. I used it to recover my sisters wedding photos and it was easy to use. It saves us from spending $350.00 for a professional to recover the photos. The photos were on a drive dedicated to them so I didn't have to worry about windows writing something to the "free" space where the photos were deleted. https://www.ccleaner.com/recuva
As a final comment, anytime you install a program that is going to delete files off your computer, I suggest reading at minimum the FAQ for that program. Most FAQ pages are bullet points to give you a high level of what their program is going to do. This gives you the knowledge to make decisions on how you want the program to work on your PC.