JPA Repositório Excluir Método Valor de retorno

@Repository
public interface FruitRepository extends JpaRepository<Fruit, Long> {
    Fruit deleteById(Long id); // To get deleted record
    Long deleteById(Long id);  // To get deleted record count
}
Daschi