Delete hidden object from commandline pythonscript He guys,

I'm working on a commandline-based puthon-script that imports an IFC-file and cleans it up.
So far i can import an IFC-file, do some clean-up and than save the file.
The only thing that i cant get my head around is the deleting of hidden objects.
These object are hidden in the 3D view and from the rendered view.
From within blender you can simply unhide and delete them.
Is there a way to delete thes objects from a commandline based python script.
You can use the command line to run blender and pass the below python script to it which will delete all unhidden objects:

import bpy
bpy.ops.object.select_all(action='DESELECT')
for obj in bpy.data.objects:
    if obj.hide == True:
        obj.hide = False
        obj.select = True
bpy.ops.object.delete()