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

DeleteContentField

Deletes a content field with the given key.

public System.String DeleteContentField(String)


Returns

The old value.

Parameters

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

Code Example

C#

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

Connect with Crownpeak