How to remove the dark cube in the 3d view


how to remove the cube in 3D view

Maybe you have slice view visible in 3D? User Interface — 3D Slicer documentation

(show in 3D button).