If your camera is giving you a "write-protect" error message, it likely can't delete or save a photo file because it was designated "read-only" or "write-protected." Or, your memory card may have a locking tab activated, so it can't write new files to the card or delete old ones until you disable the locking tab.