How do I remove the right side bar on Sublime Text?

If you are talking about the document preview it is called the Minimap. It can be hidden from: View > Hide Minimap