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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Remove/Delete Address for Customer

(0) ShareShare
ReportReport
Posted on by 2,032

Hi,

I am using D365 FO(10.0.12)

I wanted to understand what happens when 'Remove' is clicked in Address from the Customer form ?

pastedimage1601040975322v1.png

Does it trigger a deletion from the addres related tables?

I see the records are present in LogisticsPostalAddress, LogisticsLocation tables even after the address is removed for the customer. 

Is there a way to trigger a permanent delete of the customer addresss? 

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    When you remove the address, those addresses are then moved to history to maintain data integrity. For example, invoices generated on the past addresses. Why do you want to delete it permanently? OOB AFAIK there is no functionality where it will delete permanently. 

    pastedimage1601042093596v1.png

  • Suggested answer
    Ramit Paul Profile Picture
    22,809 Most Valuable Professional on at

    Hi,

    NO, Dynamics doesn't ask you if yuu are sure or not, instead it will delete directly.

    However, you can only delete Primary address =NO

    Primary address can not be deleted.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Anitha,

    It deactivates the "Location" record. You can look at Classes\LogisticsEntityLocationFormHandler\updateLocationStatus() method  to look at the logic.

    You can try this for deleting addresses - Organization administration >Periodic >Delete inactivated addresses.

  • Suggested answer
    Junaid Idrees Profile Picture
    2 on at

    Hi

    Check this job to delete address permanently but the code is for AX 2012, at least you can get the hint:

    abdulghani121.blogspot.com/.../code-for-deleting-address-information.html

    Please note this job will not delete address if it is primary.

  • Sirch Etram Profile Picture
    5 on at

    Reviving this thread, Is there any way to see all inactive delivery/customer address? not per customer.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi Sirch, I don't know if there is OOTB standard form or report that can show all inactive delivery address. In case, you don't find a way, you can create SQL query (if required for few times) and export to excel or create custom form if required all the time.

    You can refer to postalAddressDelete method in DirPartyPostalAddressDeletionHelper class for reference to tables.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 274 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 213

#3
Subra Profile Picture

Subra 202 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans