I have this black line that can't be pressed on and not connected to anything, and I don't know how to remove it
Press TAB to exit from Edit Mode to Object Mode. click on the line to select the object containing it. Press TAB again to edit the mesh. Make sure the Edge Select mode is enabled:  - now click on the edge, press X (or DEL) for deletion and choose &quot;Edges&quot;.