How to delete restore points on windows 7

broken image

Be sure to add System.Management as a reference. so it isn't as simple as just having an index like you would in an array.Īs for getting the sequence numbers, I converted the code from Microsoft to C# which will give you that info. Its likely that the count starts at 1 and keeps incrementing. I just threw in 335 since that was the farthest one back as I could find on my system. Int intReturn = SRRemoveRestorePoint(SeqNum) Private void button1_Click(object sender, EventArgs e) Public static extern int SRRemoveRestorePoint(int index) Here is my code to Remove a restore point. The SRRemoveRestorePoint can remove a restore point, provided you have the sequence number.

broken image

WMI doesn't provide a method to delete a Restore Point as far as I can tell. Touching on what Morten said you can use that API.