public void ClearSynchronisation() { using (var repository = new TradelrRepository()) { repository.DeleteOAuthToken(subdomainid, OAuthTokenType.EBAY); // delete inventory location repository.DeleteInventoryLocation(Networks.LOCATIONNAME_EBAY, subdomainid); repository.Save(); } }