For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Blog
DocsAPI Reference
DocsAPI Reference
    • AIStore
    • Documentation
  • Core Documentation
    • In-depth Overview
    • Terminology and core abstractions
    • Getting Started
    • Networking model
    • Buckets: design, operations, namespaces, and system buckets
    • Observability overview
    • CLI overview
    • Production deployment
    • Technical Blog
  • APIs, SDKs, and Compatibility
    • Go API
    • Python SDK
    • PyPI package
    • Python SDK reference guide
    • PyTorch integration
    • TensorFlow integration
    • HTTP API reference
    • curl examples
    • Easy URL
    • S3 compatibility
    • s3cmd quick start
    • Presigned S3 requests
    • Boto3 support
  • Command-Line Interface
    • CLI overview
    • ais help
    • CLI reference guide
    • Bucket operations
    • Cluster and remote-cluster management
    • Storage and mountpath management
    • Monitoring and ais show
    • Downloads
    • Jobs
    • Authentication and access control
    • Configuration via CLI
    • ETL CLI
    • Distributed shuffle CLI
    • ML / get-batch CLI
    • GCP credentials
    • TLS certificate management
  • Storage and Data Management
    • Storage services
    • Buckets: design, operations, namespaces, and system buckets
    • Native Bucket Inventory (NBI)
    • Backend providers
    • On-disk layout
    • Virtual directories
    • System files
    • Evicting remote buckets and cached data
  • Cluster Operations
    • Node lifecycle: maintenance, shutdown, decommission
    • Global rebalance
    • Resilver
    • AIS in Containerized Environments
    • Highly available control plane
    • Information Center (IC)
    • Out-of-band updates
    • Troubleshooting
  • Configuration and Security
    • Configuration
    • Environment variables
    • Feature flags
    • AuthN and access control
    • Authentication validation
    • HTTPS and certificates
    • Switching a cluster to HTTPS
  • ETL and Advanced Workflows
    • ETL overview
    • ETL CLI docs
    • ETL Python SDK examples
    • Custom transformers
    • ETL Python webserver SDK
    • ETL Go webserver package
    • Archives: read, write, and list
    • Distributed shuffle (dsort)
    • Initial sharding utility (ishard)
    • Downloader
    • Blob Downloader
    • Batch object retrieval (get-batch)
    • Batch operations
    • Tools and utilities
    • Extended actions (xactions)
  • Observability, Monitoring, and Performance
    • Observability overview
    • Monitoring with CLI
    • Logs
    • Prometheus integration
    • Metrics reference
    • Grafana dashboards
    • Kubernetes monitoring
    • Distributed tracing
    • Monitoring get-batch
    • AIS load generator (aisloader)
    • Benchmarking AIStore
    • Performance tuning and testing
    • Performance monitoring via CLI
    • Rate limiting
    • Checksumming
    • Filesystem Health Checker (FSHC)
    • Traffic patterns
  • Networking
    • Networking: multi-homing, network separation, IPv6
    • HTTPS configuration
    • Switching to HTTPS
    • Idle connections
    • MessagePack protocol
  • Deployment
    • AIStore on Kubernetes
    • Kubernetes Operator
    • Ansible playbooks
    • Helm charts
    • Deployment monitoring
    • Docker
  • Developer Resources
    • Development guide
    • aisnode command line
    • Build tags
  • Object and Bucket Naming
    • Unicode and special symbols in object and bucket names
    • Extremely long object names
Blog
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoAIStore
On this page
  • Overview
  • 1. Evict the Entire Remote Bucket (Remove Data and Metadata)
  • 2. Evict Only Bucket Data (Preserve Metadata)
  • 3. Evict a Specific Prefix, Template, or List
  • Example: Evict by Prefix
  • Summary
Storage and Data Management

Evicting remote buckets and cached data

||View as Markdown|
Previous

System files

Next

Node lifecycle: maintenance, shutdown, decommission

This guide demonstrates three ways to evict remote bucket content from AIStore using the ais evict command.

Overview

You can:

  1. Evict an entire remote bucket (data + metadata).
  2. Evict only the data, retaining bucket metadata.
  3. Evict a subset of objects using a prefix, template, or list.

The template is usually an optional prefix, range (Bash expansion, e.g., {start..end}), and optional suffix.


1. Evict the Entire Remote Bucket (Remove Data and Metadata)

To completely remove a remote bucket from AIStore—including its metadata—run ais evict without --keep-md.

1$ ais evict s3://abc
2
3Evicted bucket s3://abc from aistore

This operation removes all cached content and the bucket’s entry from AIStore’s bucket metadata (BMD).

Check eviction job status (it usually completes in a split second, so use --all to show finished jobs):

1$ ais show job evict --all
2
3evict-remote-bucket[rmmd-XrjAI7JdC]
4NODE ID KIND BUCKET START END STATE
5nXItghtr rmmd-XrjAI7JdC evict-remote-bck s3://abc 10:20:43 10:20:43 Finished
6veFtyrfq rmmd-XrjAI7JdC evict-remote-bck s3://abc 10:20:43 10:20:43 Finished
7vugtciop rmmd-XrjAI7JdC evict-remote-bck s3://abc 10:20:43 10:20:43 Finished

2. Evict Only Bucket Data (Preserve Metadata)

To remove only the in-cluster objects while retaining the bucket metadata, use --keep-md (or -k):

1$ ais evict s3://abc --keep-md
2
3Evicted s3://abc contents from aistore: the bucket is now empty

This is useful for reclaiming space without losing bucket properties.

Confirm the bucket is still in-cluster:

1$ ais ls
2
3NAME PRESENT
4s3://abc yes

Check eviction job status (use -all to show running and already finished jobs):

1$ ais show job evict --all
2
3evict-remote-bucket[kpmd-G7afG87fBC]
4NODE ID KIND BUCKET START END STATE
5nXItghtr kpmd-G7afG87fBC evict-remote-bck s3://abc 10:22:05 10:22:05 Finished
6veFtyrfq kpmd-G7afG87fBC evict-remote-bck s3://abc 10:22:05 10:22:05 Finished
7vugtciop kpmd-G7afG87fBC evict-remote-bck s3://abc 10:22:05 10:22:05 Finished

3. Evict a Specific Prefix, Template, or List

You can evict subsets of objects by specifying:

  • A prefix in the object path
  • A --template pattern (e.g., brace expansions)
  • A --list of object names

Example: Evict by Prefix

Assume we’ve prefetched objects under the copy prefix:

1$ ais prefetch s3://abc/copy
2
3prefetch-objects[acs9_7JB0]: prefetch "copy" from s3://abc. To monitor the progress, run 'ais show job acs9_7JB0'

Verify data was cached:

1$ ais bucket summary
2
3NAME OBJECTS (cached, remote) OBJECT SIZES (min, avg, max) TOTAL OBJECT SIZE (cached, remote) USAGE(%)
4- 200 0 0B 1.00KiB 1.00KiB 200.00KiB 0B 0%

Notice 200 “cached” (ie., in-cluster) objects. Now evict just that prefix:

1$ ais evict s3://abc/copy
2
3evict-objects[HRdka7fd0]: evict "copy" from s3://abc. To monitor the progress, run 'ais show job HRdka7fd0'

Or alternatively, use an explicit prefix:

1$ ais evict s3://abc --prefix copy

You can also use brace-expansion syntax, e.g. ais evict "s3://abc/shard-{0000..9999}.tar.lz4; see --help for details.

Check progress and notice that each target reports eviction statistics—object counts and their sizes.

This is because prefix-, template-, or list-based eviction requires AIStore to visit each matching object individually.

1$ ais show job evict --all

Example output:

1evict-objects[HRdka7fd0] (ctl: prefix:copy)
2NODE ID KIND BUCKET OBJECTS BYTES START END STATE
3nXItghtr HRdka7fd0 evict-listrange s3://ais-aa 69 69.00KiB 10:24:09 10:24:10 Finished
4veFtyrfq HRdka7fd0 evict-listrange s3://ais-aa 61 61.00KiB 10:24:09 10:24:10 Finished
5vugtciop HRdka7fd0 evict-listrange s3://ais-aa 70 70.00KiB 10:24:09 10:24:10 Finished

In this particular case, 3-node cluster reported (69+61+70) = 200 evictions, consistent with ais bucket summary above.


Summary

Use CaseCommand ExampleKeeps Bucket MD?
Fully evict bucket (data + metadata)ais evict BUCKET❌ No
Evict data only, retain bucket MDais evict BUCKET --keep-md or --k✅ Yes
Evict subset by prefix/template/listais evict BUCKET/prefix
--prefix, --template, --list
✅ Yes

Use ais show job --all to monitor and verify jobs.