Question
· Nov 23, 2019

Clearing my cube of data

Hi I am experienced with Ensemble but working in my first DeepSee project, so forgive me if this seems elementary. 

My question is, how do I clear  the data out? Every time I build I am adding more and more data. But I would like to revert my cube to being 0 so I can reload it and start over? Set my row count back to 0?

I am unable to remove/purge through the management portal

-I've tried to kill my cube Do ##class(%DeepSee.Utils).%KillCube("MyCube.Cube")  and then Rebuild it. 

 

Thanks In advance

Discussion (5)0
Log in or sign up to continue

-Thanks, yes my first rounds of persistent data was not what I wanted introduced into my analysis data. I manged to figure it out by making sure to using the DeleteExtent method on my persistent class. Then feeding new data into my class, compiling  the object and then rebuilding the cube. 

-Do ##class(PO.PersistentObject).%DeleteExtent(),!

-compile

- set status = ##class(%DeepSee.Utils).%BuildCube("MyCube.Cube")