Delete

This method can be used to delete entities, based on the identity properties stated in an input file.

Syntax

Importexportcli.exe delete -con <ARA-url> -usr <user> -pwd <password> -format <xml|csv> -fi <file> [-ct <customtype>] [-failonerror]

Important! To delete an entity, you can only specify attributes which identify it (for example, you cannot specify the owner of the folder).

Parameters

XML Example

<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sync.xsd">
  <Entity mainType="Workflow" customType="Install" typeVersion="1.0">
    <Property name="system_name" isIdentity="true">
      <Value>Install</Value>
    </Property>
    <Property name="system_application.system_name" isIdentity="true">
      <Value>CRM</Value>
    </Property>
  </Entity>
  <Entity mainType="Workflow" customType="Uninstall" typeVersion="1.0">
    <Property name="system_name" isIdentity="true">
      <Value>Uninstall</Value>
    </Property>
    <Property name="system_application.system_name" isIdentity="true">
      <Value>CRM</Value>
    </Property>
  </Entity>
</Sync>

CSV Example

system_identity_properties,system_name,system_application.system_name
system_name#;#system_application.system_name,Install,CRM	

Pre-Conditions

To delete a entity, the entity itself must fulfill certain conditions. Otherwise, an error message will appear. The specific conditions depend on the entity type.

Conditions to delete entities of type Application

Conditions to delete entities of type ArtifactSource

Conditions to delete entities of type Artifact

Conditions to delete entities of type Component

Conditions to delete entities of type DeploymentTarget

Conditions to delete entities of type Environment

Conditions to delete entities of type Package

Conditions to delete entities of type Workflow

Conditions to delete entities of type Stack Providers

Conditions to delete entities of type Stack Template

Conditions to delete entities of type Deployment Profile

Conditions to delete entities of type ComponentLink

Conditions to delete entities of type User

Conditions to delete entities of type UserGroup

Conditions to delete entities of type LoginObject

Conditions to delete entities of type Queue

Conditions to delete entities of type QueueRun

Conditions to delete entities of type EnvironmentComparison