38.3. Method: deleteSnapshots


Description

Deletes all snapshots across multiple systems based on the given date criteria. For example:

  • If the user provides startDate only, all snapshots created either on or after the date provided are removed
  • If user provides startDate and endDate, all snapshots created on or between the dates provided are removed
  • If the user doesn't provide a startDate and endDate, all snapshots are removed
Parameters

The following parameters are available for this method:

  • string sessionKey
  • struct - date details
    • dateTime.iso8601 startDate (Optional, unless endDate is provided)
    • dateTime.iso8601 endDate (Optional)
Returns

The following return values are available for this method:

  • int - 1 on success, exception thrown otherwise
Available since: 10.1
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat