% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paintr-registry.R
\name{ptr_clear_placeholder}
\alias{ptr_clear_placeholder}
\title{Remove user-registered placeholders}
\usage{
ptr_clear_placeholder(keyword = NULL)
}
\arguments{
\item{keyword}{Optional single string. When supplied, only that placeholder
is removed. When omitted (the default), every user-registered placeholder
is removed.}
}
\value{
The character vector of keywords that were removed, invisibly.
}
\description{
Unregisters placeholders added with \code{\link[=ptr_define_placeholder_value]{ptr_define_placeholder_value()}},
\code{\link[=ptr_define_placeholder_consumer]{ptr_define_placeholder_consumer()}}, or \code{\link[=ptr_define_placeholder_source]{ptr_define_placeholder_source()}}.
The five built-in placeholders (\code{ppVar}, \code{ppText}, \code{ppNum}, \code{ppExpr},
\code{ppUpload}) and the two structural keywords (\code{ppLayerOff}, \code{ppVerbSwitch})
are never removed.
}
\examples{
ptr_define_placeholder_value(
  "demo_kw",
  build_ui = function(node, ...) shiny::textInput(node$id, "demo"),
  resolve_expr = function(value, node, ...) value
)
ptr_clear_placeholder("demo_kw")
}
