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

        assertEquals(3,response.getDeletedObjectIds().size());
        assertTrue(response.getDeletedObjectIds().contains(coffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(largeCoffeeId));
    }
/**
     * DeleteCatalogObject
     * <p>
     * Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the 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](#type-catalogitem) will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.
     *
     * @throws ApiException if the Api call fails
     */
DeleteCatalogObject

Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the 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](#type-catalogitem) will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.

@throws ApiException if the Api call fails
DeleteCatalogObject Deletes a single [ CatalogObject ] ( #type - catalogobject ) based on the provided ID and returns the 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 ] ( #type - catalogitem ) will also delete all of its [ CatalogItemVariation ] ( #type - catalogitemvariation ) children . @throws ApiException if the Api call fails
@Test
    public void deleteCatalogObjectTest() throws ApiException {
        String coffeeId = idMap.get("#Coffee");
        String smallCoffeeId = idMap.get("#SmallCoffee");
        String largeCoffeeId = idMap.get("#LargeCoffee");
        DeleteCatalogObjectResponse response = api.deleteCatalogObject(coffeeId);
        assertEquals(3,response.getDeletedObjectIds().size());
        assertTrue(response.getDeletedObjectIds().contains(coffeeId));
        assertTrue(response.getDeletedObjectIds().contains(smallCoffeeId));
        assertTrue(response.getDeletedObjectIds().contains(largeCoffeeId));
    }
@ Test public void deleteCatalogObjectTest ( ) throws ApiException { String coffeeId = idMap . get ( "#Coffee" ) ; String smallCoffeeId = idMap . get ( "#SmallCoffee" ) ; String largeCoffeeId = idMap . get ( "#LargeCoffee" ) ; DeleteCatalogObjectResponse response = api . deleteCatalogObject ( coffeeId ) ; assertEquals ( 3 , response . getDeletedObjectIds ( ) . size ( ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( coffeeId ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( smallCoffeeId ) ) ; assertTrue ( response . getDeletedObjectIds ( ) . contains ( largeCoffeeId ) ) ; }
DeleteCatalogObject
 <p>
 Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the set of successfully deleted IDs in the response.
DeleteCatalogObject <p > Deletes a single [ CatalogObject ] ( #type - catalogobject ) based on the provided ID and returns the set of successfully deleted IDs in the response .