Delete Subnet.

@param subnetId
subnetId to be deleted
@return Mock Subnet.
515707
public MockSubnet deleteSubnet(final String subnetId) {

        if (subnetId != null && allMockSubnets.containsKey(subnetId)) {
            return allMockSubnets.remove(subnetId);
        }

        return null;
    }
1315173
public void delete(String dn) throws NamingException {
	DirContext ctx = new InitialDirContext(env);
	ctx.destroySubcontext(dn);
	ctx.close();
    }
891981
public static base_response delete(nitro_service client, String serverip) throws Exception {
		ntpserver deleteresource = new ntpserver();
		deleteresource.serverip = serverip;
		return deleteresource.delete_resource(client);
	}
997530
public static base_responses delete(nitro_service client, String Dnssuffix[]) throws Exception {
		base_responses result = null;
		if (Dnssuffix != null && Dnssuffix.length > 0) {
			dnssuffix deleteresources[] = new dnssuffix[Dnssuffix.length];
			for (int i=0;i<Dnssuffix.length;i++){
				deleteresources[i] = new dnssuffix();
				deleteresources[i].Dnssuffix = Dnssuffix[i];
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}
171469
def delete(self, subnet_id):
        
        # 1 : show subnet
        subnet = self.client.describe_subnets(
            SubnetIds=[subnet_id]).get('Subnets')[0]
        vpc_id = subnet.get('VpcId')
        # 2 : delete subnet
        self.client.delete_subnet(SubnetId=subnet_id)
        # 3 : delete vpc
        return self.client.delete_vpc(VpcId=vpc_id)
148658
def removeDomain(self, subnetId, domainId):
        
        subnetDomainIds = []
        for domain in self[subnetId]['domains']:
            subnetDomainIds.append(domain['id'])
        subnetDomainIds.remove(domainId)
        self[subnetId]["domain_ids"] = subnetDomainIds
        return len(self[subnetId]["domains"]) is len(subnetDomainIds)
50409
def delete_network(self, network):
        '''
        
        '''
        net_id = self._find_network_id(network)
        ret = self.network_conn.delete_network(network=net_id)
        return ret if ret else True
955399
@Override
  public <SN,N> MutationResult subDelete(final K key, final String cf, final SN supercolumnName,
      final N columnName, final Serializer<SN> sNameSerializer, final Serializer<N> nameSerializer) {
    return new MutationResultImpl(keyspace.doExecute(new KeyspaceOperationCallback<Void>() {
      @Override
      public Void doInKeyspace(KeyspaceService ks) throws HectorException {
        ks.remove(keySerializer.toByteBuffer(key), ThriftFactory.createSuperColumnPath(cf,
            supercolumnName, columnName, sNameSerializer, nameSerializer));
        return null;
      }
    }, consistency));
  }
1034195
public DeploymentService delete(long applicationId, long deploymentId)
    {
        HTTP.DELETE(String.format("/v2/applications/%d/deployments/%d.json", applicationId, deploymentId));       
        return this;
    }
1202169
@Nullable
    public static NetworkParameters fromID(String id) {
        if (id.equals(ID_MAINNET)) {
            return MainNetParams.get();
        } else if (id.equals(ID_TESTNET)) {
            return TestNet3Params.get();
        } else if (id.equals(ID_UNITTESTNET)) {
            return UnitTestParams.get();
        } else if (id.equals(ID_REGTEST)) {
            return RegTestParams.get();
        } else {
            return null;
        }
    }
659267
public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception {
		base_responses result = null;
		if (ipv6address != null && ipv6address.length > 0) {
			nsip6 deleteresources[] = new nsip6[ipv6address.length];
			for (int i=0;i<ipv6address.length;i++){
				deleteresources[i] = new nsip6();
				deleteresources[i].ipv6address = ipv6address[i];
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}
1307479
async def delete(self):
        """"""
        interface = self._data['interface']
        data = await interface._handler.unlink_subnet(
            system_id=interface.node.system_id, id=interface.id, _id=self.id)
        interface._data['links'] = list(data['links'])
        interface._orig_data['links'] = copy.deepcopy(interface._data['links'])
852995
public void deleteSubscription(
    String subId,
    boolean force) 
    
    throws SINotAuthorizedException, 
           SIDurableSubscriptionNotFoundException, 
           SIDestinationLockedException, 
           SIResourceException, 
           SIIncorrectCallException,
           SINotPossibleInCurrentConfigurationException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(
        tc,
        "deleteSubscription",
        new Object[] { subId, new Boolean(force) });

    checkStarted();
    
    if (subId == null)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "deleteSubscription", "SubId is null");
      throw new SIDurableSubscriptionNotFoundException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0072",
          new Object[] {null,
                        messageProcessor.getMessagingEngineName()},
          null));
    }

    HashMap durableSubs = destinationManager.getDurableSubscriptionsTable();    

    synchronized (durableSubs)
    {
      // Look up the consumer dispatcher for this subId in the system durable subs list
      ConsumerDispatcher cd = (ConsumerDispatcher) durableSubs.get(subId);
      
      // Does the subscription exist, if it doesn't, throw a 
      // SIDestinationNotFoundException
      if (cd == null)
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
          SibTr.exit(tc, "deleteSubscription", "SIDurableSubscriptionNotFoundException");
          
        throw new SIDurableSubscriptionNotFoundException(          
          nls.getFormattedMessage(
            "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0146",
            new Object[] { subId,
                           messageProcessor.getMessagingEngineName() },
          null));
      }        

      // Obtain the destination from the queueing points
      DestinationHandler destination = cd.getDestination();

      // Call the deleteDurableSubscription method on the destination
      // NOTE: this assumes the durable subscription is always local
      destination.deleteDurableSubscription(subId, messageProcessor.getMessagingEngineName());
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteSubscription");
  }
663428
public void ipOrganisation_organisationId_DELETE(String organisationId) throws IOException {
		String qPath = "/me/ipOrganisation/{organisationId}";
		StringBuilder sb = path(qPath, organisationId);
		exec(qPath, "DELETE", sb.toString(), null);
	}
1278006
def delete_subnet(self, subnet):
        '''
        
        '''
        subnet_id = self._find_subnet_id(subnet)
        ret = self.network_conn.delete_subnet(subnet=subnet_id)
        return ret if ret else True
938899
public static base_response delete(nitro_service client, String neighbor) throws Exception {
		nd6 deleteresource = new nd6();
		deleteresource.neighbor = neighbor;
		return deleteresource.delete_resource(client);
	}
318
public void deleteLocalSubscriptionControlByID(String id) 
  throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException, 
         SIDurableSubscriptionNotFoundException, SIDestinationLockedException, SIResourceException, SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "deleteLocalSubscriptionControlByID", id);
    
    assertMessageHandlerNotCorrupt();

    ControllableSubscription sub = getSubscription(id);

    if (!sub.isDurable())
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(
          tc,
          "deleteLocalSubscriptionControlByID",
          "SIMPIncorrectCallException");
          
      throw new SIMPIncorrectCallException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_DELETE_ERROR_CWSIP0272",
          new Object[]{id},
          null));  
    }
    
    HashMap durableSubs = destinationManager.getDurableSubscriptionsTable();    

    synchronized (durableSubs)
    {
      // Look up the consumer dispatcher for this subId in the system durable subs list
      ConsumerDispatcher cd = 
        (ConsumerDispatcher) durableSubs.get(sub.getConsumerDispatcherState().getSubscriberID());
      
      // Does the subscription exist, if it doesn't, throw a 
      // SIDestinationNotFoundException
      if (cd == null)
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
          SibTr.exit(tc, "deleteSubscription", "SIMPControllableNotFoundException");
          
        throw new SIMPControllableNotFoundException(          
          nls.getFormattedMessage(
            "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0146",
            new Object[] { sub.getConsumerDispatcherState().getSubscriberID(),
                           messageProcessor.getMessagingEngineName() },
          null));
      }        

      // Obtain the destination from the queueing points
      DestinationHandler destination = cd.getDestination();

      // Call the deleteDurableSubscription method on the destination
      // NOTE: this assumes the durable subscription is always local
      destination.deleteDurableSubscription(sub.getConsumerDispatcherState().getSubscriberID(), 
                                            messageProcessor.getMessagingEngineName());
    }

    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteLocalSubscriptionControlByID");
  }