web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to clear data from a custom table?

(0) ShareShare
ReportReport
Posted on by 481

Is there a way to clear all data/rows from a table but still keeping the fields?

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,593 on at

    Test this in Sandbox first and test since this is not reversible. 

    in configuration package select that table then Export Excel. Then delete all data (except header ). Then select Delete Table Records Before Processing and upload the Excel file and apply data. 

    pastedimage1654807262289v1.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    If you have a list view of them you can just mark them and delete them.

    If there is a lot of data in the table i would have my developer write some code to delete the necessary records.

  • Suggested answer
    YUN ZHU Profile Picture
    98,819 Super User 2026 Season 1 on at

    Hi, I believe the following post can give you some hints.

    https://navinsights.net/2020/10/27/4-ways-to-delete-records-from-a-table/

    Thanks.

    ZHU

  • Verified answer
    Rushi Suthar Profile Picture
    78 on at

    Hi, 

    If you want to clear your custom table data permanently,

    then use

    TablenameVariable.DeleteAll();

    Please Verify the answer and Click on Yes if my answer will help full to you. 

    Thanks.

    Rushiraj Suthar

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,682 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,010 Super User 2026 Season 1

#3
Kamal Khakhkhar Profile Picture

Kamal Khakhkhar 495

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans