Skip to main content
1 of 3
PepeFloyd
  • 8k
  • 2
  • 34
  • 57

Delete using URLFOR

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

PepeFloyd
  • 8k
  • 2
  • 34
  • 57