This command deletes the selected sketch. Before final deletion, the Dependencies window shows up.
Dialog box "Dependencies"
If you confirm with Remove all, all dependant steps will be deleted as well.