How to delete a specific nested subdocument completely from an document

hello,

the statement you provided does not remove the nested document.
its only outputting.

Is there any other way?