<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to clear custom project settings? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027160#M6184</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;How can I clear custom project settings? No matter whether I set the value to null&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;settings[""] = null;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;or set the settings object to null&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;settings = null;&lt;/LI-CODE&gt;&lt;P&gt;it keeps returning. Does it live forever in the .aprx? Like a zombie &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and regards,&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 14:39:49 GMT</pubDate>
    <dc:creator>DanielRoth</dc:creator>
    <dc:date>2021-02-16T14:39:49Z</dc:date>
    <item>
      <title>How to clear custom project settings?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027160#M6184</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;How can I clear custom project settings? No matter whether I set the value to null&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;settings[""] = null;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;or set the settings object to null&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;settings = null;&lt;/LI-CODE&gt;&lt;P&gt;it keeps returning. Does it live forever in the .aprx? Like a zombie &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and regards,&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 14:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027160#M6184</guid>
      <dc:creator>DanielRoth</dc:creator>
      <dc:date>2021-02-16T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear custom project settings?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027239#M6187</link>
      <description>&lt;P&gt;If you are talking about '&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings#Custom-project-settings" target="_self"&gt;custom project settings&lt;/A&gt;' then your findings are correct.&amp;nbsp; &amp;nbsp;The API exposes only two overrides in the Module class that allow to read/write the project settings:&amp;nbsp;OnReadSettingsAsync and&amp;nbsp;OnWriteSettingsAsync.&amp;nbsp; And you are correct since once you create those settings initially and save the project file your settings stick around for good.&amp;nbsp; &amp;nbsp;OnWriteSettingsAsync only allows you to replace an existing setting and doesn't allow you to delete any existing settings from the key/value pair list of project settings.&amp;nbsp; As a workaround I would suggest to add a boolean setting named something like "UseDefaults" and set that to true in order to clear any existing settings.&amp;nbsp; Once you read settings, check for "UseDefaults" and if its value is true just ignore all other existing settings.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027239#M6187</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-02-16T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear custom project settings?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027508#M6202</link>
      <description>&lt;P&gt;Thanks for the clarification, Wolfgang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 08:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-custom-project-settings/m-p/1027508#M6202</guid>
      <dc:creator>DanielRoth</dc:creator>
      <dc:date>2021-02-17T08:14:56Z</dc:date>
    </item>
  </channel>
</rss>

