TOPIC: How to delete persistent set
#634
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
Code:

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



What I really wanted to use is
Code:

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
Code:

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
 
 
#635
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:

Code:

PersistentWindow.DeleteSet("routemgr"')


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:

Code:

persistent


to delete your set you could run:

Code:

delete persistent where set is "routemgr"


Hope that helps.

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