Throw exception when cannot delete