Anda tidak dapat menggunakan Subquery Factoring/CTE dengan apa pun selain pernyataan SELECT. Dari dokumentasi:
Anda bisa melakukan ini:
DELETE FROM tbl WHERE tbl.id IN
(WITH X AS (), Y AS (), Z AS ()
SELECT id FROM TBL
WHERE TBL.ID IN (SELECT ID FROM Z));