Hi Kalyan,
The -expiry-time snapshot parameter is for snaplock.
[-expiry-time {MM/DD/YYYY HH:MM:SS [{+|-}hh:mm] | infinite}] - SnapLock Expiry Time
Specifies the new snaplock expiry that is applied to Snapshot copy locked by SnapLock.
When using SnapLock volumes, snapshots can't be deleted until their retention period has expired. If you are not using SnapLock then manually created snapshots must be manually deleted (although that process could be automated).
What process are you trying to achieve via the API? Assuming you are creating a manual snapshot for some purposes then having some automation that schedules the deletion of that snapshot after X hours, days etc, then i would recommend your code compares the date difference of the snapshot creation time to the current time, if greater than or equal to Y then delete the snapshot.
/Matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.