Some improvements at the deletion process

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>