Delete Method
The Delete method of the SPAttachmentCollection class deletes the attachment with the specified file name from the collection.
Parameters
leafName A string that contains the file name of the attachment to delete.
Remarks
The process of deleting an attachment with this method requires that the list item be updated to refresh version information.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security