Author Topic: Does the deleteDocs evaluates the retention time?  (Read 2902 times)

jg

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Does the deleteDocs evaluates the retention time?
« on: January 10, 2017, 05:31:45 AM »
Dear all

Does the ODFolder.deleteDocs method evaluates the retention times before executing it?
Is there way to enforce this?

Regards
Jochen

Lars Bencze

  • Full Member
  • ***
  • Posts: 116
  • CMOD Expert at Skandia
    • View Profile
    • INACTIVE - Bezland Consulting
Re: Does the deleteDocs evaluates the retention time?
« Reply #1 on: March 10, 2017, 05:17:31 AM »
No, it doesn't care about the retention time. It simply grabs the index data row from the DB table and shreds it. (The document itself is left on disk)

It sounds to me that what you really want to do is to run arsmaint -t <date>. I don't know about a smart way to check that via the Java API, but you could certainly check the database for expiry dates and only run arsdoc delete if the test evaluates to TRUE.
But normal document expiry is best handled by running arsmaint by the documentation.
OnDemand for MP expert. #Multiplatforms #Admin #Scripts #Performance #Support #Architecture #PDFIndexing #TSM/SP #DB2 #CustomSolutions #Integration #UserExits #Migrations #Workflow #ECM #Cloud #ODApi

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Does the deleteDocs evaluates the retention time?
« Reply #2 on: March 13, 2017, 03:05:05 AM »

Well if you do that (arsdoc delete OR ODFolder.deleteDocs) it will only delete the indexe(s) from the database and that's it.
No retention, nothing...

The object behind in the storage manager (cache or tsm or...) will not be deleted. Meaning that even with "arsmaint -t <date>" it will not delete the orphans objects in the storage manager.
This would be a "manual" operation to remove that orphan object.
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Does the deleteDocs evaluates the retention time?
« Reply #3 on: March 13, 2017, 04:03:06 AM »
And of course, we should mention that you must verify that the object doesn't contain any other documents.  If you delete the object, and that object is referred to by other documents, then you'll render those other documents irretrievable. 

Another way to think about it:

If the document was eligible for expiration, you wouldn't need to issue the 'deleteDocs' call -- because it wouldn't be there for you to delete.  :)

You didn't really give us much information about your situation, so I'm wondering if there's a configuration problem you're trying to correct.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR