Napoleon tried something like that. It didn't work out too well for him. ;-)
In that day, Christianity was still the dominant force. In decline, but still powerful enough that if Napoleon killed the pope, most of his subjects would raise heck.
In Europe today, most people are not Christian.