Skip to content

Delete a pin (or pins), removing it from the board

Usage

pin_delete(board, names, ...)

Arguments

board

A pin board, created by board_folder(), board_connect(), board_url() or another board_ function.

names

The names of one or more pins to delete

...

Additional arguments passed on to methods for a specific board.

Examples

board <- board_temp()
board %>% pin_write(1:5, "x")
#> Guessing `type = 'rds'`
#> Creating new version '20231109T175519Z-6c18b'
#> Writing to pin 'x'
board %>% pin_write(mtcars)
#> Using `name = 'mtcars'`
#> Guessing `type = 'rds'`
#> Creating new version '20231109T175519Z-b755f'
#> Writing to pin 'mtcars'
board %>% pin_write(runif(1e6), "y")
#> Guessing `type = 'rds'`
#> Creating new version '20231109T175520Z-2e99d'
#> Writing to pin 'y'
board %>% pin_list()
#> [1] "mtcars" "x"      "y"     

board %>% pin_delete(c("x", "y"))
board %>% pin_list()
#> [1] "mtcars"