Unlocked deleteById method