Temporary files on your smartphone and other gadgets should be deleted regularly to protect against hidden threats and data loss.