try catch on delete