Documentation > CMS Template API Library > Asset > DeleteMetaField(String)

DeleteMetaField

Deletes a meta data field with the given key.

public System.String DeleteMetaField(String)


Returns

The old value.

Parameters

NameDescriptionType
key The key or name of the field. System.String

Code Example

C#

Sample:
<% string oldValue = asset.DeleteMetaField("my_field"); %>
              

Connect with Crownpeak