Edit

Share via


<remove> element for <appSettings>

Removes custom application settings.

<configuration>
  <appSettings>
    <remove>

Syntax

<appSettings>
  <remove key="Key of custom setting" />
</appSettings>

Attribute

Attribute Description
key Required attribute.

Specifies the name of the key to remove.

Parent element

Parent element Description
<appSettings> Contains custom application settings, such as file paths, XML Web service URLs, or any other custom configuration information for an application.

Child elements

None

Example

The following example shows how to remove a custom configuration setting for ApplicationName:

<appSettings>
  <remove key="ApplicationName" />
</appSettings>

See also