performance improvements in deleting objects

Signed-off-by: Andreas Zöllner <andi@go-for-fun.de>