Most dashcams overwrite their files on a rotation basis (oldest files overwritten) but they also have a system of Protected files which are not overwritten and need to be deleted by formatting the card. Protected files are created if the dashcam thinks a collision has been detected; usually the sensitivity can be adjusted but simply a passenger slamming a door can trigger it.