app: readd removeUnits method, and use it to remove right units from app

Avoiding inconsistencies between the database and the provisioner.
app: rename variable to make clearer its propose