Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 434 Bytes

Drop

The odo.drop function deletes a data resource. That data resource may live outside of Python.

Examples

>>> from odo import drop
>>> drop('myfile.csv')                 # Removes file
>>> drop('sqlite:///my.db::accounts')  # Drops table 'accounts'
>>> drop('myfile.hdf5::/data/path')    # Deletes dataset from file
>>> drop('myfile.hdf5')                # Deletes file