final String server = "http://zanata-fortitude.lab.eng.bne.redhat.com:8080";
final String project = "skynet";
final String version = "1";
final String URI = server + "/seam/resource/restv1/projects/p/" + project + "/iterations/i/" + version + "/r";
final IFixedTranslationResources client = ProxyFactory.create(IFixedTranslationResources.class, URI);
final ClientResponse<List<ResourceMeta>> response = client.getResourceList();
final List<ResourceMeta> entity = response.getEntity();
for (final ResourceMeta meta : entity)
{
final String name = meta.getName();
System.out.println(meta.getName());
System.out.println(meta.getType().toString());
if (name.endsWith("null"))
{
System.out.println("Deleting " + name);
final ClientResponse<String> deleteResponse = client.deleteResource("admin", "b6d7044e9ee3b2447c28fb7c50d86d98", name);
final String deleteEntity = deleteResponse.getEntity();
System.out.println(deleteEntity);
}
}