I have a client that wants to delete many old inactive customers in Sage 100 that are related to CRM customers

Client has many inactive customers in Sage 100 and need to unrelate them to CRM. Client does not want to do them individually. Is there a way to do it via a script?. What will happen in CRM to those customers that are in CRM not related with a customer in Sage CRM?