# Python: deselect outliner elements

How can I deselect Text in the outliner? bpy.ops.object.select_all(action='DESELECT') will not work for this. I can just click with the mouse on Plane in the outliner and it works, but I want to do this in Python and didn't find a way yet.

bpy.context.view_layer.objects.active = None