implement deleteById and deleteAll methods