Yes, you can remove a dependent and then e-file again after you correct the reason for the rejection.
Click on My Info on the left side of the online program screen. You can delete the dependent shown