LPS-46822 make order of operations in `deleteFolder' consistent with the one in DLAppServiceImpl