How mapper.map_docs create links

How mapper.map_docs create links and is there any way via script to unlink those documents

Custom app by override mapper.map_docs (with hook feature) with your own code