<?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 manually delete buckets in cluster peers? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146106#M5443</link>
    <description>&lt;P&gt;I know that in a clustered environment, I cannot just manually delete/roll the buckets off colddb directory manually.  Doing so might cause unintended consequences. So is there a CLI command that I can use on the cluster master to manually delete/roll of the bucket/s?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2014 21:01:12 GMT</pubDate>
    <dc:creator>splunkIT</dc:creator>
    <dc:date>2014-07-16T21:01:12Z</dc:date>
    <item>
      <title>How to manually delete buckets in cluster peers?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146106#M5443</link>
      <description>&lt;P&gt;I know that in a clustered environment, I cannot just manually delete/roll the buckets off colddb directory manually.  Doing so might cause unintended consequences. So is there a CLI command that I can use on the cluster master to manually delete/roll of the bucket/s?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 21:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146106#M5443</guid>
      <dc:creator>splunkIT</dc:creator>
      <dc:date>2014-07-16T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to manually delete buckets in cluster peers?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146107#M5444</link>
      <description>&lt;P&gt;to remove a single copy of a bucket - you can use the cluster/master/buckets/{BID}/remove_from_peer endpoint, example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme "https://MASTER:MGMT/services/cluster/master/buckets/main~1490~D4A07A5D-3C3C-4D36-BD70-D610B432466F/remove_from_peer" -d peer=BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to remove all copies of a bucket:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme -X POST "https://MASTER:MGMT/services/cluster/master/buckets/main~1490~D4A07A5D-3C3C-4D36-BD70-D610B432466F/remove_all"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively - we can also manually freeze buckets:&lt;/P&gt;

&lt;P&gt;you can freeze the bucket - once a bucket is frozen, it won't be replicated anymore. also, freezing a bucket also (by default unless theres a cold2frozen script) deletes it. if you want to manually clean up all copies of bucket X, you'll need to freeze bucket X on all the indexers.&lt;/P&gt;

&lt;P&gt;to freeze a bucket on an indexer, just curl the endpoint:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:pw https://indexer:mgmt_port/services/data/indexes/index_name/freeze-buckets -d bucket_ids=bucketid -X POST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for example, to freeze bucket main~10~abcd... and main~11~abcd... on a specific indexerA&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:pw https://indexerA:mgmt_port/services/data/indexes/main/freeze-buckets -d bucket_ids=10_abcd...,11_abcd... -X POST
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146107#M5444</guid>
      <dc:creator>dxu_splunk</dc:creator>
      <dc:date>2020-09-28T17:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to manually delete buckets in cluster peers?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146108#M5445</link>
      <description>&lt;P&gt;This worked great for me for an issue we were having with our indexer cluster.  After multiple attempts to enable maintenance mode, restarting indexers, and other issues this finally did the trick.  &lt;/P&gt;

&lt;P&gt;Here's my results, and not I ran this from the CLI of our Cluster Master.&lt;/P&gt;

&lt;P&gt;[host /]$ curl -k -u admin &lt;A href="https://INDEXER_NAME_OR_IP:8089/services/data/indexes/INDEX_NAME/freeze-buckets"&gt;https://INDEXER_NAME_OR_IP:8089/services/data/indexes/INDEX_NAME/freeze-buckets&lt;/A&gt; -d bucket_ids=FULL BUCKET ID -X &lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146108#M5445</guid>
      <dc:creator>millern4</dc:creator>
      <dc:date>2015-07-15T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to manually delete buckets in cluster peers?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146109#M5446</link>
      <description>&lt;P&gt;what is the procedure to delete a corrupt bucket on windows?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-peers/m-p/146109#M5446</guid>
      <dc:creator>hanijamal</dc:creator>
      <dc:date>2016-04-21T16:18:07Z</dc:date>
    </item>
  </channel>
</rss>

