Deletes an item of IPTC information.
Syntax

[C#]

void Delete(string field);

[Visual Basic]

Sub Delete(field As String)
Params
Name Description
field The field to be deleted.
Notes

Use this method to delete an existing IPTC field.

You can refer to fields either using the common names or using a more formal "Record:DataSet" format as defined in the IPTC specification. For more details see Add.

When you delete an item referred to by name, all IPTC items with that name are deleted. For example if you call this method with the parameter "keyword" this will delete all keywords in the information set.

Note that information changes are not applied until Embed is called.

See Also

Embed

Add

Example

[C#]

string file = Server.MapPath("IG8_Metadata_Delete.jpg");
string src = Server.MapPath("rez/iptc.jpg");
File.Copy(src, file, true);
Metadata metadata = new Metadata(src);
metadata.Iptc.Delete("Headline");
metadata.Iptc.Delete("2:110"); // Credit
metadata.Iptc.Embed(file);


The code reads the IPTC information from a JPEG file. It deletes the headline and credit and updates the file.