Error Message:
Error code 6: The handle is invalid - When I delete the Remote Profile folder, it throws "Unable to Delete the profile."
Possible Causes:
There might not be any inherited permission on the folder.
Make sure that the user has permission to delete the folder and the subfolder.
Troubleshooting Steps:
1. Check whether the particular service account user has delete permissions on that folder.
2. This can happen even in a condition when the folder is currently in use. So do close any contents of that folder and perform the action again.