When is it appropriate to ask User confirmation?

A couple of times I archived some of my emails accidentally ( touch screen you know ) . They don't usually ask for confirmation while archiving messages or emails. But they do while deleting . So in what situations is it appropriate to ask for user confirmation ?