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 '20241213T233057Z-0050f'
#> Writing to pin 'x'
board %>% pin_write(mtcars)
#> Using `name = 'mtcars'`
#> Guessing `type = 'rds'`
#> Creating new version '20241213T233057Z-418c9'
#> Writing to pin 'mtcars'
board %>% pin_write(runif(1e6), "y")
#> Guessing `type = 'rds'`
#> Creating new version '20241213T233058Z-7f227'
#> Writing to pin 'y'
board %>% pin_list()
#> [1] "mtcars" "x"      "y"     

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