Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

What happens to the File data when a record with a File column is deleted in Dynamics

(0) ShareShare
ReportReport
Posted on by 10

Hi Everyone, I am in the process of implementing a table which has a File column and I was wondering... what happens to the File data when a record with a File column is deleted in Dynamics. The reason I ask is that I do not want to have orphan files sitting out there taking up space.

Any feedback would be greatly appreciated.

Thank you, 

Marc Villeneuve

  • Marc Villeneuve Profile Picture
    Marc Villeneuve 10 on at
    RE: What happens to the File data when a record with a File column is deleted in Dynamics

    Hi Bipin thanks for the reply, was hoping to find out the out of the box behavior so I can plan around it just as you suggested.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,959 Super User 2024 Season 1 on at
    RE: What happens to the File data when a record with a File column is deleted in Dynamics

    Hi,

    Ideally it should get deleted when Record is deleted.

    In case it still exist you can implement code to delete the file manually from custom workflow/plugin using below code

    docs.microsoft.com/.../file-attributes

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans