We study the relationship between depth and regularity of a homogeneous ideal I and those of (I, f ) and I : f , where f is a linear form or a monomial. Our results have several interesting consequences on depth and regularity of edge ideals of hypergraphs and of powers of ideals.