Dear All,
I have custom OAF application where a record has 2 files linked to it.
I need to delete one of the files but the DELETE button is disabled on the webpage and I couldn't find a way to personalize the page to enable it again.
I came across fnd_attached_documents2_pkg.delete_attachments API but only takes Entity Name and PK1_value, which is same in my case for the two files.
The two files only differ in DOCUMENT_ID and ATTACHED_DOCUMENT_ID in fnd_attached_documents table.

Please advise if there is another API that I should be looking at or any alternate way?
Regards,.
Prateek