<?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>question Re: Apache NiFi do not release Content Storage space after archive was desabled in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408351#M252690</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126490"&gt;@asand3r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Changing following to false turns off archiving.&lt;/P&gt;&lt;PRE&gt;nifi.content.repository.archive.enabled&lt;/PRE&gt;&lt;P&gt;NiFi does not clean-up files left in these directories once archive is disabled. Since archive is disabled the archive code that would scan these directories to remove old archive data is not longer executing.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You'll need to manually purge the archived content claims from the archive sub-directories after disabling content_repository archiving.&lt;BR /&gt;&lt;BR /&gt;So your two nodes that still have archive data had that data still present at shutdown while the others did not have archive data after shutdown.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 17:29:19 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-05-14T17:29:19Z</dc:date>
    <item>
      <title>Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408332#M252686</link>
      <description>&lt;P&gt;Hey, everyone!&lt;/P&gt;&lt;P&gt;Could you help me with next problem, please? I have a test NiFi instance, where I turned on Content Storage archive. It was works good, but one time I decided to increase value of "nifi.content.repository.archive.max.usage.percentage" from default 50% to 70%.&lt;/P&gt;&lt;P&gt;So, NiFi utilized space to 70% of total as I expected.&lt;BR /&gt;But, after that I disabled archiving and expected that NiFi releases all data used by archive, but it doesn't happens.&lt;BR /&gt;Why so? I've saw messages, that archived data is never cleanup if "nifi.content.repository.archive.enabled" set to "false" after it has been "true". Is that truth?&lt;/P&gt;&lt;P&gt;My current settings:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepository
nifi.content.claim.max.appendable.size=1 MB
nifi.content.repository.directory.repo0=/mnt/nifi/repos/content_repository
nifi.content.repository.archive.max.retention.period=6 hours
nifi.content.repository.archive.max.usage.percentage=60%
nifi.content.repository.archive.backpressure.percentage=70%
nifi.content.repository.archive.enabled=false
nifi.content.repository.always.sync=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 12:17:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408332#M252686</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-05-14T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408335#M252688</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126490"&gt;@asand3r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Need some more detail to provide a good answer here...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What version of Apache NiFi or Cloudera Flow Management are you using?&lt;/LI&gt;&lt;LI&gt;After changing "nifi.content.repository.archive.enabled" to false in the nifi.properties file, did you restart NiFi?&lt;/LI&gt;&lt;LI&gt;If you manually inspect the archive sub-directories, do any of them still hold files or are all of the archive sub-directories within the content_repository empty?&amp;nbsp; If they are empty then archive clean-up is complete.&lt;/LI&gt;&lt;LI&gt;You mention "&lt;SPAN&gt;&amp;nbsp;I've saw messages, that archived data is never cleanup", can you share this message you are seeing which I assume is from the nifi-app.log?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Keep in mind that disabling archive will not prevent content_repository from filling the disk where it resides to 100%.&amp;nbsp; Content claims associated to actively queued FlowFiles within your dataflows on the NiFi canvas will still exist in the content_repository.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 12:52:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408335#M252688</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-05-14T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408336#M252689</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;thanks for your answer.&lt;/P&gt;&lt;P&gt;1. It's Apache NiFi 1.18.0&lt;BR /&gt;2. Yeap, NiFi was restarted; and I usually restart it after any changes in nifi.properties was made.&lt;BR /&gt;3. Hmm, I have confused here. I'm newbie and before I asked my quetion thought that NiFi do not move files somewhere else. But now I see 'archive' directories in content repo. Now, I has three-node cluster with disabled archive (after it was enabled earlier) -- one node has no any files inside 'archive' directories, but other tho has.&lt;BR /&gt;4. Sorry, it's from private chat with my colleagues. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, basically, if I set "&lt;SPAN&gt;nifi.content.repository.archive.enabled" to "false" and restart NiFi service, it must delete all earlier archived data? I was disable it about 4 hours ago, but two nodes still has files inside "*/archive/*" directories.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[user@nifi-host content_repository]$ pwd
/mnt/nifi/repos/content_repository
[user@nifi-host content_repository]$ find . -path "*/archive/*" | wc -l
3955&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 May 2025 13:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408336#M252689</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-05-14T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408351#M252690</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126490"&gt;@asand3r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Changing following to false turns off archiving.&lt;/P&gt;&lt;PRE&gt;nifi.content.repository.archive.enabled&lt;/PRE&gt;&lt;P&gt;NiFi does not clean-up files left in these directories once archive is disabled. Since archive is disabled the archive code that would scan these directories to remove old archive data is not longer executing.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You'll need to manually purge the archived content claims from the archive sub-directories after disabling content_repository archiving.&lt;BR /&gt;&lt;BR /&gt;So your two nodes that still have archive data had that data still present at shutdown while the others did not have archive data after shutdown.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 17:29:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408351#M252690</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-05-14T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408355#M252692</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;thanks so much.&lt;BR /&gt;Is it ok, if I simply remove archived data while NiFi is running? Or I must stop a node before delete?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;find /mnt/nifi/repos/content_repository -path "*/archive/*" -exec rm -f {} \;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 19:07:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408355#M252692</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-05-14T19:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi do not release Content Storage space after archive was desabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408357#M252693</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126490"&gt;@asand3r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;With Archive disabled, NIFi is no longer tracking the files left in the archive sub-directories.&amp;nbsp; You can remove those files while NiFi is running.&amp;nbsp; Just make sure you don't touch the active content_repository claims.&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 19:43:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-do-not-release-Content-Storage-space-after/m-p/408357#M252693</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-05-14T19:43:09Z</dc:date>
    </item>
  </channel>
</rss>

