I created a table using Android's Room library, which stores items of type User
. For the ID column, the value is automatically generated by adding the annotation
@PrimaryKey(autoGenerate = true)
In the next application run, I delete all entries in the table. However, the auto-generated value is not reset to 0, but continues where it left of the previous run.
How can I reset the auto-increment counter when I delete all entries in a table?