A Google Apps Script to unshare the user's entire Google Drive using recursion.
Copy this script into a new Google Apps Script project. Add the Drive Api v3 service from the services drop-down on the left side of the IDE. Run the unShare method.
(you will have to grant permissions for the app in the popup after you run the function)