Updated Delete query