Disabled custom variables

How to disable custom variables as only one page is seen as user flow:

  //_paq.push(['setCustomUrl', 'XXX.html']);
  //_paq.push(['setDocumentTitle', 'XXXtitle']);
  _paq.push(['deleteCustomVariables', 'page']);  
  _paq.push(['setGenerationTimeMs', 0]);

Will this work in the correct way or any other settings should be made to return user flow and date/time elements as history will be lost if I delete website as an account.

Reference: https://piwik.org/blog/2017/02/how-to-track-single-page-websites-using-piwik-analytics/