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

Notifications

Announcements

No record found.

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,529 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,105 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
    95,329 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans