Step-by-step explanation:
The process is as follows:
Select the file you want to delete.
Select delete from file menu. (You can right click on the file or press delete button on keyboard). A pop would appear which would prompt you to confirm the deletion of the file.
Confirm the deletion.
The x button at the top right would close the file and not delete it. Thus, it is incorrect option.