public void DeleteTM() { ServerBasedTranslationMemory tm = TMServer.GetTranslationMemory(ParentOrganizationPath + "/APISampleTest", TranslationMemoryProperties.None); if (tm != null) { tm.Delete(); WriteResult("TM deleted\r\n"); } }
public void DeleteTm(TranslationProviderServer tmServer, string organizationPath, string tmName) { string tmPath = organizationPath; if (!tmPath.EndsWith("/")) { tmPath += "/"; } ServerBasedTranslationMemory tm = tmServer.GetTranslationMemory(tmPath + tmName, TranslationMemoryProperties.All); tm.Delete(); }