If you are looking for a workflow which deletes all nodes below a given
path then that should be easy to author if it is not available OOTB. You
simply need to drag Process step in the workflow and write ecma script
to delete the path and it's child nodes.
Plase share the exception trace that you see in the error log file. Also
provide details regarding whether the AF is XML schema based or XDP
based? If not is not based on XDP then did you specify some Document of
record configuration for the same? If yes, please share the details