Triplit
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Welcome
  • Quick Start
  • Migrating to Triplit 1.0
  • React + Vite tutorial
  • FAQ

    • Installation
    • insert
    • update
    • delete
    • transact
    • fetch
    • fetchOne
    • fetchById
    • subscribe
    • subscribeWithPagination
    • subscribeWithExpand
    • subscribeBackground
    • Storage
    • Sync engine
    • Event listeners
    • HTTP client
    • Web Worker client
    • Options
    • Debugging
    • Overview
    • Select
    • Include
    • Where
    • Order
    • Limit
    • SubqueryOne/Many
    • syncStatus
    • Vars
    • Defining
    • Updating
    • Types
    • Relations
    • Roles and permissions
    • Installation
    • dev
    • schema
    • seed
    • snapshot
    • clear
    • roles
    • init
    • repl
    • React
    • React Native
    • Angular
    • Solid
    • Svelte
    • Tanstack Router
    • Vue
    • Browser
    • Node
    • Cloudflare Workers
    • Bun
    • Hermes (React Native)
    • Overview
    • Managed machines
    • Self-hosted deployments
    • Triplit Console
    • Quickstart
    • Sessions API
      • Clerk
      • Supabase

  • Self-hosting
  • Offline mode
  • Local development
  • Seeding a database
  • Server-side rendering
  • HTTP API
Edit this page on GitHub
CLI
`clear`

triplit clear

triplit clear
Clears the sync server's database

Flags:
--full, -f Will also clear all metadata from the database, including the schema.
--token, -t Service Token
--remote, -r Remote URL to connect to
`snapshot``roles`

MIT 2025 © Nextra.