How to delete something selected by PHOTOSHOP?

1. Select the magnetic lasso tool in the toolbar, and then select the part to be removed.

2. Press the shortcut key shift+F6 to open the feathering dialog box. Let's set the radius to 1 and click OK.

(as shown in the figure below)

3. Press the Delete key to delete directly.