How to abandon doctrine

Look at your doctrine page and look at the latest researched part. Click it and it should say "abandon doctrine" where it would normally say "Start project'

So more or less, just do everything backards and you should be able to research any doctrine tree.