Data Management

Clear all records from the database

Summary

Hey there! In this guide, we'll walk through the simple steps to clear all records from a database table using Xano's intuitive spreadsheet viewer. Whether you're starting fresh or resetting your data, this process is quick and easy.

Step 1: Open the Spreadsheet Viewer

First, navigate to the database table you want to clear. In the top right corner, you'll see a menu icon - click on that.

Step 2: Select "Clear All Records"

From the dropdown menu, choose the "Clear All Records" option.

Step 3: Confirm the Clear Action

A pop-up window will appear, asking you to type "clear" to confirm the action. You'll also have the option to reset the primary ID (the unique identifier for each record) back to 1.

If you don't reset the primary ID, any new records you add will continue the existing numbering sequence. For example, if your last record had an ID of 8, the next record will be assigned ID 9.

Step 4: Start Fresh or Continue Sequence

Depending on your preference, you can either:

  1. Start Fresh: Type "clear" and check the box to reset the primary ID back to 1. This will give you a clean slate for adding new records, with IDs starting from 1.
  2. Continue Sequence: Type "clear" but leave the reset primary ID option unchecked. This will clear all existing records while preserving the numbering sequence for any new records you add.

Step 5: Verify the Clear Action

Once you hit "Confirm and Clear," all records in the table will be removed. If you chose to reset the primary ID, you can add a new record, and it will be assigned ID 1.

If you continued the sequence, any new records will pick up from the last assigned ID before the clear action.

And that's it! With just a few clicks, you can quickly clear a database table and optionally reset the primary ID sequence to start fresh or continue where you left off.

Xano's no-code approach makes tasks like this incredibly straightforward, allowing you to manage your data efficiently without writing a single line of code. Give it a try and experience the power of visual backend development!

This transcript was AI generated to allow users to quickly answer technical questions about Xano.

Was this helpful?

I found it helpful

I need more support
Sign up for XanoSign up for Xano

Build without limits on a secure, scalable backend.

Unblock your team's progress and create a backend that will scale for free.

Start building for free