% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Storage.R
\name{remove_postgres_storage}
\alias{remove_postgres_storage}
\title{Remove PostgreSQL storage}
\usage{
remove_postgres_storage(gitstats)
}
\arguments{
\item{gitstats}{A GitStats object.}
}
\value{
A \code{GitStats} object (invisibly).
}
\description{
Drops the GitStats schema (with all tables and metadata) from
the PostgreSQL database, closes the connection, and reverts storage to the
default in-memory local backend. Errors if no PostgreSQL backend is
currently set.
}
\examples{
\dontrun{
  my_gitstats <- create_gitstats() |>
    set_postgres_storage(
      dbname = "my_database",
      host = "localhost",
      user = "postgres",
      password = "secret"
    )
  remove_postgres_storage(my_gitstats)
}
}
