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...
Suggested Answer

UNABLE TO DELETE UNUSED TABLES FROM CODE IN DYNAMICS 365 BUSINESS CENTRAL

(5) ShareShare
ReportReport
Posted on by 36
Hi Team,
 
I was doing code refactor and found that in my code few tables are obsoleted, and the obsolete state is removed from few years. There are no references of the table as well. On deleting the table and running the AL validation for "US" it gives validation error as attached. Can you please help me is there any way that i can remove unused tables and unused table fields and get rid of the AL validation as well. 
 
In case of any questions, you may email me on - ankit@binarystream.com
 
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,363 Super User 2025 Season 2 on at
  • Gerardo Rentería García Profile Picture
    25,213 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    SQL schema cleanup in BC – The BC Docs Librarian

    Best Regards
    Gerardo

  • Suggested answer
    Ramesh Kumar Profile Picture
    7,527 Super User 2025 Season 2 on at
    Hi,
     
    Obsoleting the field/tables is right way to remove. I hope below can help you.
     
     
    Thanks
    Ramesh
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
    If your app is for appsource then you need to mark first as Obsolete and then in the next version you can remove them, if that is for PTE then you can use the synchronization to force it.  
  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Hi, hope the following helps as well.
     
    Thanks.
    ZHU
  • Vahid Ghafarpour Profile Picture
    12,090 Super User 2025 Season 2 on at
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊

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,143

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans