public void delete(String resourceId) throws ItemNotFound {
    int id = Integer.parseInt(resourceId);
    if (!getPigStorage().exists(this.resourceClass, id)) {
      throw new ItemNotFound();
    }
    getPigStorage().delete(this.resourceClass, id);
  }
Delete operation
@param resourceId object identifier
@throws ItemNotFound
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/CRUDResourceManager.java