In California, local communities have the authority to ban in situ mmj/mj dispensaries within their borders. This right was affirmed by the California Supreme Court in 2013. I doubt very much if local communities can do anything about delivery services operating legally within the state.