Use this API to delete policymap of given name.
500632
public static base_response delete(nitro_service client, String mappolicyname) throws Exception {
		policymap deleteresource = new policymap();
		deleteresource.mappolicyname = mappolicyname;
		return deleteresource.delete_resource(client);
	}
229004
def delete_policy(self, policy_name, autoscale_group=None):
        
        params = {'PolicyName': policy_name}
        if autoscale_group:
            params['AutoScalingGroupName'] = autoscale_group
        return self.get_status('DeletePolicy', params)
1270866
public static boolean removeGrassRasterMap( String mapsetPath, String mapName ) throws IOException {

        // list of files to remove
        String mappaths[] = filesOfRasterMap(mapsetPath, mapName);

        // first delete the list above, which are just files
        for( int j = 0; j < mappaths.length; j++ ) {
            File filetoremove = new File(mappaths[j]);
            if (filetoremove.exists()) {
                if (!FileUtilities.deleteFileOrDir(filetoremove)) {
                    return false;
                }
            }
        }
        return true;
    }
1213778
def delete_policy(self, policy):
        
        return self.manager.delete_policy(scaling_group=self, policy=policy)
980062
public boolean removeNamedGroupingPolicy(String ptype, List<String> params) {
        boolean ruleRemoved = removePolicy("g", ptype, params);

        if (autoBuildRoleLinks) {
            buildRoleLinks();
        }
        return ruleRemoved;
    }
181539
def delete_policy(self, scaling_group, policy):
        
        return self._manager.delete_policy(scaling_group=scaling_group,
                policy=policy)
495765
public void destroy() {
		List<byte[]> digestList = getDigestList();

		client.put(this.policy, this.key, Bin.asNull(this.binNameString));

		for (byte[] digest : digestList) {
			Key subKey = new Key(this.key.namespace, digest, null, null);
			client.delete(this.policy, subKey);
		}
	}
88440
def delete(method, hmc, uri, uri_parms, logon_required):
        """"""
        try:
            resource = hmc.lookup_by_uri(uri)
        except KeyError:
            raise InvalidResourceError(method, uri)
        resource.manager.remove(resource.oid)
1347174
def delete_service_bindings(self, service_name):
        
        instance = self.get_instance(service_name)
        return self.api.delete(instance['service_bindings_url'])
949285
def remove_mapping(agent, prefix, ip):
    """"""
    return _broadcast(agent, RemoveMappingManager,
                      RecordType.record_A, prefix, ip)
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);
		}
	}
737681
public static base_response delete(nitro_service client, String urlname) throws Exception {
		vpnurl deleteresource = new vpnurl();
		deleteresource.urlname = urlname;
		return deleteresource.delete_resource(client);
	}
204416
public boolean removeNamedGroupingPolicy(String ptype, String... params) {
        return removeNamedGroupingPolicy(ptype, Arrays.asList(params));
    }
1295738
def delete_ikepolicy(self, ikepolicy):
        '''
        
        '''
        ikepolicy_id = self._find_ikepolicy_id(ikepolicy)
        ret = self.network_conn.delete_ikepolicy(ikepolicy_id)
        return ret if ret else True
982472
def delete(options = {})
      options = options.merge(
        role_name: @role_name,
        policy_name: @name
      )
      resp = @client.delete_role_policy(options)
      resp.data
    end
653331
public void removeRoleToWarningMapping(String appName) {
        Map<String, Boolean> roleToWarningMap = roleToWarningMappingPerApp.get(appName);
        if (roleToWarningMap != null) {
            roleToWarningMap.clear();
        }
        roleToWarningMappingPerApp.remove(appName);
    }
1137830
def delete_policy_for_vhost(self, vhost, name):
        
        self._api_delete('/api/policies/{0}/{1}/'.format(
            urllib.parse.quote_plus(vhost),
            urllib.parse.quote_plus(name),
        ))