You can set the duration of the archive storage in the camera settings panel:
If the cumulative duration of the video clips in the storage folder exceeds the user-defined size, the oldest recordings are deleted as soon as recording of a new clip is started.