TOPIC: How to delete persistent set
How to delete persistent set 3 Years, 6 Months ago
I am having trouble removing a persistent set I accidently created via copy and pasting. I created it with

PersistentWindow(#(Book mybook, "Route Manager") newset: "routemgr")

What I really wanted to use is

PersistentWindow(#(Book routebook, "Route Manager") newset: "routemgr")

When I try to use the routebook, I get a persistent set already exists error message. I have attempted to use deleteset on both mybook and routebook

PersistentWindow(#(Book routebook, "Route Manager") deleteset: "routemgr")

and then issue a new newset, but continue to get the same message.

Wondering what I should do to fix this?

Post edited by: thundercleese, at: 2007/02/03 19:40
Re:How to delete persistent set 3 Years, 6 Months ago
A quick look at the source code shows there is no "deleteset" parameter on PersistentWindow, but there is a DeleteSet method, so you could try:



This does not appear to be documented.

Alternately, persistent sets are stored in the "persistent" table so from QueryView you can view the records by running:



to delete your set you could run:


delete persistent where set is "routemgr"

Hope that helps.

Post edited by: andrew, at: 2007/02/04 19:01
Re:How to delete persistent set 3 Years, 6 Months ago
Thanks, that was exactly what I needed.