Closed andy-esch closed 6 years ago
Deleting tables is already supported: https://github.com/CartoDB/carto-python/blob/master/examples/import_and_merge.py#L135, can you please confirm if it's not working?
Will take a look at the warning feature.
Ah, great, I didn't see delete in the code before.
Sorry for the noise!
Deleting datasets is an important task, and this library should support it. The call is a 'DELETE' request to
api/v1/viz
.Like Builder, a call to
DatasetManager.delete
should error/warn if a dataset is connected to a map. I prefer an Error in the Python case. Adding aforce=False|True
will let users force the operation regardless. As far as I know, there's metadata in the api/v1/viz GET that lists the dependents of a table.