Updated invalid deletion query.