Use this API to delete gslbsite resources of given names.
11589
public static base_responses delete(nitro_service client, String sitename[]) throws Exception {
		base_responses result = null;
		if (sitename != null && sitename.length > 0) {
			gslbsite deleteresources[] = new gslbsite[sitename.length];
			for (int i=0;i<sitename.length;i++){
				deleteresources[i] = new gslbsite();
				deleteresources[i].sitename = sitename[i];
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}
752228
void removeResourceModels(final Bundle bundle) {
        this.logger.info("Removing resource models of bundle " + displayNameOf(bundle) + "...");
        MatchedBundlesPredicate sourcesWithBundles = new MatchedBundlesPredicate(bundle);
        for (Collection<OsgiModelSource<?>> values : this.typeNameToModelSourcesMap.values()) {
            CollectionUtils.filter(values, sourcesWithBundles);
        }
        clearLookupCaches();
        this.logger.info("Removed " + sourcesWithBundles.getFilteredElements()
                + " resource models of bundle " + displayNameOf(bundle) + "...");
    }
1181012
public static base_response delete(nitro_service client, String servicename) throws Exception {
		gslbservice deleteresource = new gslbservice();
		deleteresource.servicename = servicename;
		return deleteresource.delete_resource(client);
	}
1200205
def destroy(self, names):
        '''
        
        '''
        mapper = salt.cloud.Map(self._opts_defaults(destroy=True))
        if isinstance(names, six.string_types):
            names = names.split(',')
        return salt.utils.data.simple_types_filter(
            mapper.destroy(names)
        )
229693
public String removeResourceAlias(String alias)
    {
        if (_resourceAliases == null)
            return null;
        return (String)_resourceAliases.remove(alias);
    }
1347174
def delete_service_bindings(self, service_name):
        
        instance = self.get_instance(service_name)
        return self.api.delete(instance['service_bindings_url'])
1069054
public static void destroyDataSources(){
		synchronized (dataSourcesStructureLock){
			for (Map.Entry<String, DataSource> dsEntry: dataSources.entrySet()){
				String dsName = dsEntry.getKey();
				DataSource ds = dsEntry.getValue();
				for (Map.Entry<String, DataSourceProvider> dspEntry: dataSourceProviders.entrySet()){		// try them one by one
					String dspName = dspEntry.getKey();
					DataSourceProvider dsp = dspEntry.getValue();
					try{
						if (dsp.destroyDataSource(ds)){
							break;
						}
					}catch(NoClassDefFoundError e){
						// ignore
					}catch(Throwable e){
						log.error("Error when destroying data source '" + dsName + "' using provider '" + dspName + "'", e);
					}
				}
			}
			dataSources.clear();
		}
	}
496075
def remove_resources(self, resources):
    

    resources_to_delete = self._build_resource_dictionary(resources)
    for email in resources_to_delete.keys():
      if email in self._resources:
        del self._resources[email]

    self._dirty_attributes.add(u'resources')
1067686
public void deleteOld() {

        Iterator<CmsResourceTypeStatResult> iterator = m_results.iterator();
        while (iterator.hasNext()) {
            CmsResourceTypeStatResult res = iterator.next();
            if (isToOld(res)) {
                iterator.remove();
            }
        }
    }
1367374
public void deleteResource(final String resourceName) throws WebApplicationException {
        synchronized (resourceName) {
            try {
                mDatabase.truncateResource(new SessionConfiguration(resourceName, null));
            } catch (TTException e) {
                throw new WebApplicationException(e);
            }
        }
    }
1178379
def clear(self):
        """"""

        r = self._h._http_resource(
            method='DELETE',
            resource=('user', 'keys'),
        )

        return r.ok
1303605
def _cleanup(self, domains):
        """"""
        for option in domains.values():
            try:
                os.remove(option['pot'])
            except (IOError, OSError):
                # It is not a problem if we can't actually remove the temporary file
                pass
932466
public synchronized void unset(String name) {
		String[] names = null;
		if (!isDeprecated(name)) {
			names = getAlternativeNames(name);
			if(names == null) {
				names = new String[]{name};
			}
		}
		else {
			names = handleDeprecation(deprecationContext.get(), name);
		}

		for(String n: names) {
			getOverlay().remove(n);
			getProps().remove(n);
		}
	}
296301
def cleanup(self):
        """"""
        for file in glob.glob(self.basename + '*'):
            os.unlink(file)
630916
private void cleanUp() {
        try {
            File file = new File(System.getProperty("user.dir"));
            String[] links = file.list();
            for (String name : links) {
                File potentialSymLink = new File(file, name);
                if (FileUtils.isSymlink(potentialSymLink)) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("DELETING: " + potentialSymLink);
                    }
                    potentialSymLink.delete();
                }
            }
        }
        catch (Exception e) {
            logger.warn("Failed to remove symlinks", e);
        }
    }
826483
def delete(self, *names: str, pipeline=False):
        
        if pipeline:
            self._pipeline.delete(*names)
        else:
            self._db.delete(*names)
539949
public static base_responses delete(nitro_service client, String wlmname[]) throws Exception {
		base_responses result = null;
		if (wlmname != null && wlmname.length > 0) {
			lbwlm deleteresources[] = new lbwlm[wlmname.length];
			for (int i=0;i<wlmname.length;i++){
				deleteresources[i] = new lbwlm();
				deleteresources[i].wlmname = wlmname[i];
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}