Share all details about your problem, including any error messages you may have received.
The error message is suggesting to set “deletesubtree” to true. Please let me know if it is a safer option to do that? or is there any other way to delete the AD account?
Also, Please share if there are steps involved for implementing the solution.
The error suggests that the account you are trying to delete has associated child object. You can work with your AD admins to find out what child objects is causing this error and if its ok to set the deletesubtree to true to delete the account and any associated child objects. You can check on the following post for reference.