delete works for DB and tree