The error System.LimitException: Too many SOQL queries: 101 is because you cant have more of 100 SOQL query (Synchronous limit)
(https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm)
List<Contact> contacts = [
SELECT Id, FirstName, LastName, Email, AccountId
FROM Contact
WHERE (Email = null OR Email = '')
LIMIT 742
];
List<User> usersToDisable = [select id, isActive from User where ContactId in :contacts];contacts and isActive=true];
for (User u : usersToDisable) {
u.isActive= false;
}
update usersToDisable;
delete contacts;