Reset custom variables

I like to show usual user flow when tested custom variables like:
_paq.push([‘setCustomUrl’, ‘XXX’]);
_paq.push([‘setDocumentTitle’, ‘My New Title’]);

Is this enough to insert and delete also custom variables?
_paq.push([‘deleteCustomVariables’, ‘page’]);

or I have to put other code like
// remove all previously assigned custom variables, requires Piwik 3.0.2
_paq.push([‘deleteCustomVariables’, ‘page’]);
_paq.push([‘setGenerationTimeMs’, 0]);
_paq.push([‘trackPageView’]);