code: public static base_response delete(nitro_service client, snmptrap resource) throws Exception {
  		snmptrap deleteresource = new snmptrap();
  		deleteresource.trapclass = resource.trapclass;
  		deleteresource.trapdestination = resource.trapdestination;
  		return deleteresource.delete_resource(client);
  	}
docs: Use this API to delete snmptrap.