Error fix for 'This robot has pending or running jobs and cannot be deleted. (#1666)' thrown when attempting to delete user from Tenant->Manage Access .
Based on the error message it appears that there is process tied to the user in one of the folder which remained in pending status or running status.
- Navigate to each folder "Jobs" page
- Filter the records with "Pending State" & "Running State"
- Stop all the pending jobs / running jobs found under the user from all the folders that the user is part of
- Also make sure that the user is not tied to any active Triggers, if so, remove the user from the trigger or disable the trigger.
- Now delete the user from Manage Access page after stopping all the pending jobs, running jobs & removing them from the triggers to which they were assigned.