Show/Hide Toolbars

Reporting Services CMD

Command: DelSnapshot

 

Delete snapshot

 

SSRS Version:

 

2000, 2005 (N), 2005 (I), 2008 (N), 2008 (I),2008r2(N), 2008r2(I), 2012(N), 2012(I), Azure

 

(N)=Native

(I)=Integrated

 

 

Syntax

 

DelSnapshot  Report|Folder [/I:Id] [/S][/R:range]

DelSnapshot  [/?] displays help

 

 

Parameters

 

 [Report]     Snapshot to delete from report

 [/ID:]       ID of the snapshot to delete

              Can use wildcard- *

 [/R:<]       ID range of snapshots to delete

 [/R:>]       ID range of snapshots to delete

 [/S]         Include sub folders

              Note: only works with folders

 

 

 

Examples

 

 

This example gets the ID then deletes a snapshot. The ID is highlighted.

 

 

\>getrpthist /d

 

 

 

Report        : blank

Path          : \

Max snapshots : Unlimited (Inherits from system)

-------------------------------------------------------------------------

|     ID              |     Date            | Size

-------------------------------------------------------------------------

2012-08-27T20:31:53 | 27/08/2012 21:31:53 | 14135

| 2012-08-27T20:33:21 | 27/08/2012 21:33:21 | 14134

-------------------------------------------------------------------------

Snapshots     : 2

 

\>delsnapshot blank /id:2012-08-27T20:31:53

 

Snapshot Deleted: 2012-08-27T20:31:53

 

\>

 

Remarks

 

To get the report history snapshot ID use the command GetRptHist <report | folder> /d

Use the wild card '*' to delete items. eg DelSnapshot /id:2012-08*  delete all snapshots in August 2012

 

See Also

 

 CreateReportHistSnapshot        - Create report history snapshot

 DelSnapshot                        - Delete report history snapshot

 GetRptHist                        - Get report history information

 GetRptHistCnt                        - Get report history count information

 HistDisable                        - Disable report history

 HistEnable                        - Enable report history

 HistStatus                        - Report history status

 SetRptHistCnt                        - Set report history count