Red Hat Training

A Red Hat training course is available for Red Hat Satellite

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