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 '20241007T174652Z-87646'
#> Writing to pin 'x'
board %>% pin_write(mtcars)
#> Using `name = 'mtcars'`
#> Guessing `type = 'rds'`
#> Creating new version '20241007T174652Z-b9134'
#> Writing to pin 'mtcars'
board %>% pin_write(runif(1e6), "y")
#> Guessing `type = 'rds'`
#> Creating new version '20241007T174653Z-4dcab'
#> Writing to pin 'y'
board %>% pin_list()
#> [1] "mtcars" "x"      "y"     

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