added public function deleteById()