VANISHING OF (CO)HOMOLOGY OVER COMMUTATIVE RINGS