Willcase attachments get deleted after expunger has deleted all traces of an archived case?

will case attachments get deleted (or remain orphaned out) in the file repository (s3) after the expunger has deleted all traces of an archived case?

if attachments are not deleted, is there any extension point provided by Pega to write our own logic if we wanted to delete the files when we are expunging the cases ?

Hi @Chunzhi_Hong

In previous versions of Pega Infinity 25.1 if you have attachment in repository you need to delete yourself the attachment while expunging.
In Pega Infinity 25.1 the case attachments in the repository will be deleted independently if this is S3 AWS or another, a they use the Repository API.

Regards

Eliseo Olla

@Eliseo Olla thanks for the reply!

regarding your comment below, do you mean pyPegaExpunger job will delete case attachments saved in S3?

In Pega Infinity 25.1 the case attachments in the repository will be deleted independently if this is S3 AWS

Hi @Chunzhi_Hong,
Yes the job will do this deletion as you were saying it uses the Repository API to do that.
Regards

Eliseo Olla

Findings…

  1. Only from Pega '25.1+, Case attachments stored in S3 repository will be deleted when archived cases are expunged by the job pyPegaExpunger.
  2. Case attachments stored in S3 repository will NOT be deleted if cases are purged directly from DB without being archived.