Remove array object at 4th level in couchbase 4.0.0

Try this.

UPDATE default AS assessment USE KEYS "test"
SET t.questions = ARRAY q FOR q IN t.questions WHEN q.id != "1234" END
FOR t WITHIN assessment.versions when t.id = "TAB-9e56258e-c468-4ca7-aac3-cd74d5ed1952" END ;