Disabled parent/child queries in the delete by query api.

PR for #5828