function cbOfficeClearAfterGenerate(err, written) {
    if (err) {
      // BMK_TODO:
    } // Endif.

    clearSmartArrayFromType(gen_private.type.msoffice.rels_main, 'generate')
    clearSmartArrayFromType(gen_private.type.msoffice.rels_app, 'generate')
    clearSmartArrayFromType(gen_private.type.msoffice.files_list, 'generate')

    if (genobj.generate_data) {
      genobj.generate_data = null
      delete genobj.generate_data
    } // Endif.
  }
Clean after finishing to generate the document.

This method destroying any additional resources added by the 'beforeGen' effect to the generator.

@param {object} err Generation error message (if there were any).
@param {object} written Number of bytes been created.