deleteInvalidatedCredentials

Goes through all credentials and deletes the ones which are invalidated.