Don't keep garbage in DBMS when removing repository.