renamed beforeDelete and afterDelete callbacks to beforeDestroy and afterDestroy