mapbox / tilesets-cli

CLI for interacting with the Mapbox Tilesets API and Mapbox Tiling Service
https://docs.mapbox.com/mapbox-tiling-service
BSD 2-Clause "Simplified" License
125 stars 27 forks source link

Delete tileset #61

Closed mapsam closed 4 years ago

mapsam commented 4 years ago

Adds a tilesets delete <id> command for deleting a tileset. By default this requires an extra y prompt but you can pass --force to bypass.

cc @dianeschulze

mapsam commented 4 years ago

@dianeschulze updated the delete prompts to ask for the full ID - here's what it looks like:

tilesets

# error 
$ tilesets delete test.id
To confirm tileset deletion please enter the name of the "hello.world": hola.mundo
Error: hola.mundo does not match hello.world. Aborted!

# success
To confirm tileset deletion please enter the name of the tileset hello.world: hello.world
Tileset deleted.

sources

# error 
$ tilesets delete-source test waka
To confirm source deletion please enter the full source id "hello/world": hola/mundo
Error: hola/mundo does not match hello/world. Aborted!

# success
To confirm source deletion please enter the full source id "hello/world": hello/world
Source deleted.