how to delete a file related to a case in cloud storage programmatically

how to delete a file related to a case in cloud storage programmatically

we have tried activity

pyDeleteAttachment

however, if we upload a file with same name after calling above rule, Conflict error is reported.

More, the file to be deleted is attached by case programmatically, by Link-Objects method

Hi @MaxonL16591286 if you file is stored in PegaCloud you can leverage OOTB D_pxDelete. This will delete the file from the cloud.

@MaxonL16591286

Activity pyDeleteAttachment delete the file attached to WO but doesn’t delete from repository so the file is still in the repository due to which while uploading same filename is throwing in error.

To remove file/attachment from repository use D_pxDeleteFile.