There is a step definition in existance already that you can use for this:

When I click "delete"