Added deleteById function