src/test/java/com/squareup/connect/api/CatalogApiTest.java
@Test
    public void batchDeleteCatalogObjectsTest() throws ApiException {
        String coffeeId = idMap.get("#Coffee");
        String smallCoffeeId = idMap.get("#SmallCoffee");
        String largeCoffeeId = idMap.get("#LargeCoffee");
        String smallTeaId = idMap.get("#SmallTea");

        BatchDeleteCatalogObjectsRequest body = new BatchDeleteCatalogObjectsRequest()
            .objectIds(asList(coffeeId, smallTeaId));
        BatchDeleteCatalogObjectsResponse response = api.batchDeleteCatalogObjects(body);

        assertEquals(4,response.getDeletedObjectIds().size());
        assertTrue(response.getDeletedObjectIds().contains(coffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(largeCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallTeaId));
    }
/**
     * BatchDeleteCatalogObjects
     * <p>
     * Deletes a set of [CatalogItem](#type-catalogitem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a CatalogItem will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.  &#x60;BatchDeleteCatalogObjects&#x60; succeeds even if only a portion of the targeted IDs can be deleted. The response will only include IDs that were actually deleted.
     *
     * @throws ApiException if the Api call fails
     */
BatchDeleteCatalogObjects

Deletes a set of [CatalogItem](#type-catalogitem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a CatalogItem will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.  `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted IDs can be deleted. The response will only include IDs that were actually deleted.

@throws ApiException if the Api call fails
BatchDeleteCatalogObjects Deletes a set of [ CatalogItem ] ( #type - catalogitem ) s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response . Deletion is a cascading event such that all children of the targeted object are also deleted . For example deleting a CatalogItem will also delete all of its [ CatalogItemVariation ] ( #type - catalogitemvariation ) children . ` BatchDeleteCatalogObjects ` succeeds even if only a portion of the targeted IDs can be deleted . The response will only include IDs that were actually deleted . @throws ApiException if the Api call fails
@Test
    public void batchDeleteCatalogObjectsTest() throws ApiException {
        String coffeeId = idMap.get("#Coffee");
        String smallCoffeeId = idMap.get("#SmallCoffee");
        String largeCoffeeId = idMap.get("#LargeCoffee");
        String smallTeaId = idMap.get("#SmallTea");
        BatchDeleteCatalogObjectsRequest body = new BatchDeleteCatalogObjectsRequest()
            .objectIds(asList(coffeeId, smallTeaId));
        BatchDeleteCatalogObjectsResponse response = api.batchDeleteCatalogObjects(body);
        assertEquals(4,response.getDeletedObjectIds().size());
        assertTrue(response.getDeletedObjectIds().contains(coffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(largeCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallTeaId));
    }
@ Test public void batchDeleteCatalogObjectsTest ( ) throws ApiException { String coffeeId = idMap . get ( "#Coffee" ) ; String smallCoffeeId = idMap . get ( "#SmallCoffee" ) ; String largeCoffeeId = idMap . get ( "#LargeCoffee" ) ; String smallTeaId = idMap . get ( "#SmallTea" ) ; BatchDeleteCatalogObjectsRequest body = new BatchDeleteCatalogObjectsRequest ( ) . objectIds ( asList ( coffeeId , smallTeaId ) ) ; BatchDeleteCatalogObjectsResponse response = api . batchDeleteCatalogObjects ( body ) ; assertEquals ( 4 , response . getDeletedObjectIds ( ) . size ( ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( coffeeId ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( smallCoffeeId ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( largeCoffeeId ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( smallTeaId ) ) ; }
BatchDeleteCatalogObjects
 <p>
 Deletes a set of [CatalogItem](#type-catalogitem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response.
BatchDeleteCatalogObjects <p > Deletes a set of [ CatalogItem ] ( #type - catalogitem ) s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response .