Use this API to disable snmpalarm of given name.
5958
public static base_response disable(nitro_service client, String trapname) throws Exception {
		snmpalarm disableresource = new snmpalarm();
		disableresource.trapname = trapname;
		return disableresource.perform_operation(client,"disable");
	}
617172
public void remove(String name){
        Map<String,Object> m = getMap(name);
        if(m!=null) {
            memoryHeap.release(m.get(name));
            m.remove(name);
        }
    }
561116
public static base_response unset(nitro_service client, Long ownernode, String args[]) throws Exception {
		snmpengineid unsetresource = new snmpengineid();
		unsetresource.ownernode = ownernode;
		return unsetresource.unset_resource(client, args);
	}
1311923
public static base_responses unset(nitro_service client, String trapname[], String args[]) throws Exception {
		base_responses result = null;
		if (trapname != null && trapname.length > 0) {
			snmpalarm unsetresources[] = new snmpalarm[trapname.length];
			for (int i=0;i<trapname.length;i++){
				unsetresources[i] = new snmpalarm();
				unsetresources[i].trapname = trapname[i];
			}
			result = unset_bulk_request(client, unsetresources,args);
		}
		return result;
	}
712104
public static base_response disable(nitro_service client, String aclname) throws Exception {
		nsacl disableresource = new nsacl();
		disableresource.aclname = aclname;
		return disableresource.perform_operation(client,"disable");
	}
393058
public void unregister(Collector m) {
    synchronized (collectorsToNames) {
      List<String> names = collectorsToNames.remove(m);
      for (String name : names) {
        namesToCollectors.remove(name);
      }
    }
  }
268907
def disable(self, name=None):
        """"""
        if name is None:
            for name in self._actions_dict:
                self.disable(name)
            return
        self._actions_dict[name].qaction.setEnabled(False)
893639
def disable(name, **kwargs):
    '''
    
    '''
    if _service_is_upstart(name):
        return _upstart_disable(name)
    executable = _get_service_exec()
    cmd = [executable, '-f', name, 'remove']
    return not __salt__['cmd.retcode'](cmd, python_shell=False)
781317
public static base_response unset(nitro_service client, snmpmib resource, String[] args) throws Exception{
		snmpmib unsetresource = new snmpmib();
		return unsetresource.unset_resource(client,args);
	}
238035
public boolean disable(Jid pushJid, String node)
            throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        DisablePushNotificationsIQ disablePushNotificationsIQ = new DisablePushNotificationsIQ(pushJid, node);
        return changePushNotificationsStatus(disablePushNotificationsIQ);
    }
1106166
public static base_response disable(nitro_service client, String name) throws Exception {
		vserver disableresource = new vserver();
		disableresource.name = name;
		return disableresource.perform_operation(client,"disable");
	}
261364
public synchronized void unset(String name) {
    String[] altNames = getAlternateNames(name);
    getOverlay().remove(name);
    getProps().remove(name);
    if (altNames != null && altNames.length > 0) {
      for (String altName : altNames) {
        getOverlay().remove(altName);
        getProps().remove(altName);
      }
    }
  }
699226
public static void unregisterMbean(MBeanServer server, ObjectName name) {
        try {
            server.unregisterMBean(name);
        } catch(Exception e) {
            logger.error("Error unregistering mbean", e);
        }
    }
1023627
public void removeName(String name)
   {
      indexes.remove(name);
      names.remove(name);
      dirty = true;
   }
185543
public static void disableHost(String hostName) throws Exception {
        changeHost(hostName, false, true, false, false, false);
    }
1313098
public static base_response disable(nitro_service client, String ip) throws Exception {
		dnsnameserver disableresource = new dnsnameserver();
		disableresource.ip = ip;
		return disableresource.perform_operation(client,"disable");
	}
521677
public static base_responses disable(nitro_service client, String acl6name[]) throws Exception {
		base_responses result = null;
		if (acl6name != null && acl6name.length > 0) {
			nsacl6 disableresources[] = new nsacl6[acl6name.length];
			for (int i=0;i<acl6name.length;i++){
				disableresources[i] = new nsacl6();
				disableresources[i].acl6name = acl6name[i];
			}
			result = perform_operation_bulk_request(client, disableresources,"disable");
		}
		return result;
	}