How to format a memory card with a camera?
The camera should have such a function in the menu. You need to go to the "settings" section. Usually, at the very bottom there is a section "working with memory". This function is used very rarely, therefore, it is buried very deeply.
To avoid any unpleasant failures, it is recommended to format the flash drive before each shooting. Of course, we are talking about a big shot, such as a wedding, when the photographer runs out of a few flash drives.
The formatting function is built into the camera itself and is accessible from the menu.