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

ClearUpload

Clears the specified upload's meta data from the asset. If there is an array of uploads with this name, they are all removed unless a specific element is named.

public System.Void ClearUpload(String)

Parameters

NameDescriptionType
key The key used to identify the upload that you are clearing. System.String

Code Example

C#

Sample:
<% assetWithAttachments.ClearUpload("my_photo"); %>

Connect with Crownpeak