deleteAssets deleteassets

Deletes multiple assets.

Syntax

Authorized user types section-a6bc555b8ac840c98835b73fbf838d70

  • IpsUser
  • IspAdmin
  • IpsCompanyAdmin
  • ImagePortalAdmin
  • ImagePortalContrib
  • ImagePortalContribUser

Parameters section-4dc888e77d974ac794b553616dd11e86

Input (deleteAssetsParam)

Name
Type
Required
Description
companyHandle
xsd:string
Yes
The handle to the company the assets belong to.
assetHandleArray
types:HandleArray
Yes
The array of assets to be deleted.

Output (deleteAssetsParam)

Name
Type
Required
Description
successCount
xsd:int
Yes
The number of successfully deleted assets.
warningCount
xsd:int
Yes
The assets that generated a warning when the operation tried to delete them.
errorCount
xsd:int
Yes
The assets that generated an error when the operation tried to delete them.
warningDetailArray
types:AssetOperationFaultArray
No
The array of details associated with the assets that generated a warning when the operation tried to delete them.
errorDetailArray
types:AssetOperationFaultArray
No
The array of details associated with the assets that generated an error when the operation tried to delete them.

Examples section-aaad1933bf86479eb6cb476cec7d4587

This code sample sends a handle to a company and an array of asset handles in a deleteAssetsParam request to the Web services server. deleteAssetsReturn returns a success count of 2, indicating both assets were deleted.

Request

<deleteAssetsParam xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <companyHandle>c|6</companyHandle>
   <assetHandleArray>
      <items>a|942|1|579</items>
      <items>a|943|1|580</items>
   </assetHandleArray>
</deleteAssetsParam>

Response

<deleteAssetsReturn xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <successCount>2</successCount>
   <warningCount>0</warningCount>
   <errorCount>0</errorCount>
</deleteAssetsReturn>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681