Readd cleaned/fixed deleteinstance