How do you unregister a block? What would be the o...
# pacc-may-31-2023
m
How do you unregister a block? What would be the opposite of https://docs.prefect.io/2.10.11/concepts/blocks/#registering-blocks-for-use-in-the-prefect-ui?
e
Copy code
(default) ➜  101 git:(main) ✗ prefect block type --help
                                                                                                                                                                                   
 Usage: prefect block type [OPTIONS] COMMAND [ARGS]...                                                                                                                             
                                                                                                                                                                                   
 Commands for working with blocks types.                                                                                                                                           
                                                                                                                                                                                   
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                                                                                                                     │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ delete                           Delete an unprotected Block Type.                                                                                                              │
│ inspect                          Display details about a block type.                                                                                                            │
│ ls                               List all block types.                                                                                                                          │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
prefect block type ls
to view blocks and
prefect block type delete <block>
to delete
👍 1