Can't delete vertices in modelling mode?

sometimes I can delete stuff and sometimes not. Anybody knows why and how to do that properly?