This should work, thanks.

-----Original Message-----
From: Francesc Alted [mailto:fal...@pytables.org] 
Sent: Thursday, September 16, 2010 1:37 PM
To: pytables-users@lists.sourceforge.net
Subject: Re: [Pytables-users] When you remove tables from a PyTables file,
the file size stays the same

A Thursday 16 September 2010 19:18:31 Francesc Alted escrigué:
> A Thursday 16 September 2010 18:23:38 Charles Krohn escrigué:
> > Hello all,
> > 
> > 
> > 
> > I had a large file (~50GB) consisting of seven tables.  I removed
> > all but one of the tables using the remove() command, e.g.
> > f.root.t032010.remove(). After closing the file, the file size
> > remains exactly the same.  Is there some way to actually remove the
> > data from the file, rather than merely delete the reference to the
> > node?
> 
> No directly.  You will need to copy the contents of the file to
> another one (via File.copy() for example)

Oops.  I meant File.copyFile().  tables.copyFile() should also do the 
work.

-- 
Francesc Alted

----------------------------------------------------------------------------
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to