Use this API to delete appfwxmlcontenttype of given name.
420550
public static base_response delete(nitro_service client, String xmlcontenttypevalue) throws Exception {
		appfwxmlcontenttype deleteresource = new appfwxmlcontenttype();
		deleteresource.xmlcontenttypevalue = xmlcontenttypevalue;
		return deleteresource.delete_resource(client);
	}
1309321
function remove(appName, domain, callback) {
    var url = format('/%s/apps/%s/domains/%s', deis.version, appName, domain);
    commons.del(url, callback);
  }
761678
public static void removeSipSubcontext(Context envCtx) {
		try {
			envCtx.destroySubcontext(SIP_SUBCONTEXT);
		} catch (NamingException e) {
			logger.error(sm.getString("naming.unbindFailed", e));
		}
	}
1089226
final protected function removeAppProcess()
    {
        $appname = $this->params['appname'];
        Output::displayAsGreen("Processing to delete app : $appname \n", "none", false);
        sleep(1);

        // DELETE TO APP CORE

        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        if (!empty($file)) {
            foreach ($file as $one => $val) {
                if ($val->name == $appname) {
                    unset($file->$one);
                    break;
                }
            }

            $file = array_values((array)$file);
            $filetemp = $file;
            $file = json_encode((object) $file, JSON_PRETTY_PRINT);

            file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), $file);
            if (strlen($file) < 3) {
                file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), "");
            }
        }

        $asm = new AssetsManager();
        $asm->__render(["commands" => ["assets:clear"],
            "options" => ["--quiet", "--noexit", "--appname=". $this->params['appname']]]);
        // $this->removeComposerApp($appname);
        Server::delete(FEnvFcm::get("framework.apps")."$appname", "directory");
        if (empty($filetemp)) {
            $base = __DIR__."/../../../../../../";
            $elem = json_decode(file_get_contents($base."elements/config_files/core/framework.config.json"));
            $elem->installation = null;
            $elem->deployment = null;
            file_put_contents($base."elements/config_files/core/framework.config.json", json_encode($elem));
        }
        Output::displayAsGreen("The application has been deleted. To create a new application,
         use [app create] .", "none", false);
    }
1008878
public ApiResponse<Templates> deleteTemplatesWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = deleteTemplatesValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<Templates>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
978469
private void removePropertyStrings(Service s) {
        String type = s.getType();
        String algorithm = s.getAlgorithm();
        // use super() to avoid permission check and other processing
        super.remove(type + "." + algorithm);
        for (String alias : s.getAliases()) {
            super.remove(ALIAS_PREFIX + type + "." + alias);
        }
        for (Map.Entry<UString,String> entry : s.attributes.entrySet()) {
            String key = type + "." + algorithm + " " + entry.getKey();
            super.remove(key);
        }
        if (registered) {
          Security.increaseVersion();
        }
    }
548958
public static appfwxmlschema get(nitro_service service, String name) throws Exception{
		appfwxmlschema obj = new appfwxmlschema();
		obj.set_name(name);
		appfwxmlschema response = (appfwxmlschema) obj.get_resource(service);
		return response;
	}
733608
protected String cleanAppId(String appId) {
    return (appId != null) ? StringUtil.cleanseToken(appId) : Constants.UNKNOWN;
  }
76740
public static void removeSipSessionsUtil(Context envCtx, String appName, SipSessionsUtil sipSessionsUtil) {
		if(envCtx != null) {
			try {
				javax.naming.Context sipContext = (javax.naming.Context)envCtx.lookup(SIP_SUBCONTEXT + "/" + appName);
				sipContext.unbind(SIP_SESSIONS_UTIL_JNDI_NAME);
			} catch (NamingException e) {
				logger.error(sm.getString("naming.unbindFailed", e));
			}
		}
	}
901310
public void removeApplication(Application app) {
        this.appNameApplicationMap.remove(app.getName().toUpperCase(Locale.ROOT));
        this.applications.remove(app);
    }
468420
function removeAppFolderItem(itemPath) {
  const resolvedFolderPath = path.join(path.resolve(tmp), 'src', 'app', itemPath);
  return fs.remove(resolvedFolderPath);
}
186123
@Override
    public void deleteApplication(ApplicationDefinition appDef) {
        checkServiceState();
        for(TableDefinition tableDef: appDef.getTableDefinitions().values()) {
            m_logService.deleteTable(Tenant.getTenant(appDef), appDef.getAppName(), tableDef.getTableName());
        }
    }
72607
def _RemoveIllegalXMLCharacters(self, xml_string):
    
    if not isinstance(xml_string, py2to3.STRING_TYPES):
      return xml_string

    return self._ILLEGAL_XML_RE.sub('\ufffd', xml_string)
1252132
public static base_response delete(nitro_service client, appfwlearningdata resource) throws Exception {
		appfwlearningdata deleteresource = new appfwlearningdata();
		deleteresource.profilename = resource.profilename;
		deleteresource.starturl = resource.starturl;
		deleteresource.cookieconsistency = resource.cookieconsistency;
		deleteresource.fieldconsistency = resource.fieldconsistency;
		deleteresource.formactionurl_ffc = resource.formactionurl_ffc;
		deleteresource.crosssitescripting = resource.crosssitescripting;
		deleteresource.formactionurl_xss = resource.formactionurl_xss;
		deleteresource.sqlinjection = resource.sqlinjection;
		deleteresource.formactionurl_sql = resource.formactionurl_sql;
		deleteresource.fieldformat = resource.fieldformat;
		deleteresource.formactionurl_ff = resource.formactionurl_ff;
		deleteresource.csrftag = resource.csrftag;
		deleteresource.csrfformoriginurl = resource.csrfformoriginurl;
		deleteresource.xmldoscheck = resource.xmldoscheck;
		deleteresource.xmlwsicheck = resource.xmlwsicheck;
		deleteresource.xmlattachmentcheck = resource.xmlattachmentcheck;
		deleteresource.totalxmlrequests = resource.totalxmlrequests;
		return deleteresource.delete_resource(client);
	}
627314
public ApiResponse<DeleteMetadataResponse> deleteMetadataWithHttpInfo(String location) throws ApiException {
        com.squareup.okhttp.Call call = deleteMetadataValidateBeforeCall(location, null, null);
        Type localVarReturnType = new TypeToken<DeleteMetadataResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
1108417
@Delete("/metadata/{projectName}/tokens/{appId}")
    public CompletableFuture<Revision> removeToken(@Param("projectName") String projectName,
                                                   @Param("appId") String appId,
                                                   Author author) {
        return mds.findTokenByAppId(appId)
                  .thenCompose(token -> mds.removeToken(author, projectName, token.appId()));
    }
339162
public void deleteBulkDocsAsync(String index, String type,
            QueryBuilder filterQueryBuilder) {
        executeBulkRequestAsync(buildDeleteBulkRequestBuilder(
                buildExtractDeleteRequestBuilderList(index, type,
                        filterQueryBuilder)));
    }