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...
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
    22,342 Super User 2026 Season 1 on at
  • Gerardo Rentería García Profile Picture
    26,110 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,549 Super User 2026 Season 1 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,278 Super User 2026 Season 1 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
    100,212 Super User 2026 Season 1 on at
    Hi, hope the following helps as well.
     
    Thanks.
    ZHU
  • Vahid Ghafarpour Profile Picture
    12,258 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans