If you want to remove the logo and the toolbar you can do:
p.toolbar.logo = Nonep.toolbar_location = None
Hope this resolves your problem
On any Bokeh plot object you can set:
p.toolbar_location = None