You don’t need to go crazy to remove unused CSS from bootstrap. Simply use Vulture CSS! A free web tool.
Enter the html of your web page and the bootstrap CSS code and the result will be only the CSS code used.
Alternatively you can use the free API, view the complete documentation.