I could see doing this in a very extreme scenario, like the deity essentially saying "Hey, we need to talk, step into my office" by replacing all their 5th-level and higher spells with Commune or something one day. But as a regular thing, absolutely not. Not only is it extra work for the GM in a metagame sense, in-universe it undermines the entire point of clerics, that they are divine agents who are expected (and empowered) to have autonomy in fulfilling their gods' directives.

If you want to get technical though, this approach could be taken with a wide variety of casters. You could pick the spells for druids, sorcerers, oracles, paladins and rangers too. Pretty much everybody that doesn't use a spellbook could have their ability to choose their spells subverted in this manner. But it's still not a great idea.