This query does not seem to delete the node and child nodes, though I am not able to view the node data, but the node is still there with its uid.
I want to delete all these child nodes along with the node whose uid I provide.

I can still query these nodes using the ‘query’ I shared earlier to view their data which shows that the node is not actually deleted.