After you file

If you have not filed the 2023 tax return, you can remove the dependent in the My Info section of the program

Click on My Info on the left side of the online program screen.  Delete the dependent.