public boolean removeOffering ( String offeringName ) { if ( offeringName == null ) throw new NullPointerException ( "The parameter \"cloudOfferingId\" cannot be null." ) ; BasicDBObject query = new BasicDBObject ( "offering_name" , offeringName ) ; Document removedOffering = this . offeringsCollection . findOneAndDelete ( query ) ; return removedOffering != null ; }
Remove an offering