I found this thread on StackOverflow: Need an Apps Script for Google Sheets to remove all access except the owner
I need a slight modification to it - Restrict access only to specific email addresses that already have editor permission. Thanks a lot!