Please click in the menu bar "View" -> "DWG or DXF properties/Layer". On the left side of the menu, you can delete your DWG/ DXF file via the button "Remove" from your actual project.