You can set the desired path on the Storage tab 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.