I have a DAO method like this
@Query("DELETE FROM Weather WHERE name = :name")
Completable deleteDataByName(String name);
Weather object
@Entity
public class Weather {
@PrimaryKey(autoGenerate = true)
public int id;
public String name;
public String date;
public String description;
public String icon;
etc.
Data is not deleted when I call deleteDataByName method.
How can I fix it?
There are 16 Weather objects in the database with the same name
How can I delete them?


