After how many days attachment gets deleted from archived records

Ap_1
Tera Contributor

Can anyone please tell me after how many days attachments gets deleted from an archived records.

After archiving any record, its related attachment still remains on the archived record, but seems after sometime it gets deleted.

 

Please let me know how it is happening.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ap_1 

The best is contact with ServiceNow Support team for this or have a look these links.

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/database-rotati...

 

Check "Archive Duration" field in the Archive Destroy Rules (From Navigator, "System Archiving" > "Archive Destroy Rules".

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

varunkumar11863
Tera Expert

The best way to manage attachments while archiving is to leave them be.

The difference between leaving them alone and "archiving" them below:

 

ArchivingLeaving

"Archiving" has no effect on the actual file data; it merely archives the "File Info" record in sys attachment. As attachments are typically obtained from the parent record, these are directly queried via the table_sys id, and this will be extremely quick even for a large number of attachment "File Info" records, this actually has no benefit.

However, since the "File Info" is archived when you perform this action, if you want to manually restore a record, you will also need to manually restore any associated "File Info" records.

If the attachments are left alone, for example, the platform will simply update the sys attachment entry (the "File Info") to point to the ar incident table rather than the incident table once an incident is archived. Once the record is restored, the update will be undone and everything will function as it should.


The attachments will get permanently deleted if the corresponding archive record will be deleted as part of the Archive Destroy rule.