Why sometimes fails => /file remove [find]

I got a Script on some routers, with that command in it to erase all files. Its because small space on hAP lite and trying to upgrade the router.

/file remove [find]

It fails, mainly when exist the file “auto-before-reset.backup”.
Done a simple script like this other, works where the other script doesn’t:

:do {
  /file remove [find];
  log info "Remove Done";
} on-error={
  :log error "Failed to delete all";
}

Is there a reason why it fails? or a workaround to solve this issue?

EDIT: If manual erase “auto-before-reset.backup” the scripts works as expected.

Thanks.

find also returns directories. Some may be protected. Also depending on the order some of these directories may not be emtpy.