Delete multiple campaigns quickly in SAS® Customer Intelligence Studio


SAS Customer Intelligence utilities provide the functionality to delete multiple campaigns, campaign groups, or other SAS Customer Intelligence public object types quickly.

This utility is available with SAS® Customer Intelligence version 6.6.

To run the utility, locate the folder where the utilities are stored. (This folder is typically located in SASHOME\SASCustomerIntelligenceUtilities\6.6). If you run the command line in default mode without the -delete parameter, the command lists all campaigns and groups that it will delete.

Notes:

The following examples illustrate how to use the new utility to delete SAS Customer Intelligence public object types.

Example 1

In this example, all campaigns in the /Campaigns/Examples/ folder are listed when you submit the following command:

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -bclocation /Campaigns/Examples/ -metaserver {fully-qualified-target-host-name} -verbose

Important: To actually delete campaigns, campaign groups, or any other SAS Customer Intelligence public object types, you need to add the -delete option at the end of the command, as shown below:

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -bclocation /Campaigns/Examples/ -metaserver {fully-qualified-target-host-name} -delete

Example 2

When you submit the following command, you create a file where you can list all treatments that you want to delete. (The example below creates the Treatments.txt file.)

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -filetype CICTreatment,c:/temp/Treatments.txt  -metaserver {fully-qualified-target-host-name} -verbose

Adding the -delete option, as shown below, removes the treatments that you list in the file that you created:

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -filetype CITreatment,c:/temp/Treatments.txt  -metaserver {fully-qualified-target-host-name} -delete

In this command, -filetype specifies a file (UTF-8) that contains a list of paths within the business context for the given type. For example, the type can be any SAS Customer Intelligence public object types. See SAS® Marketing Automation 6.6: Administrator’s Guide, Chapter 11 "Command-Line Utilities," for a list of the types. 

Note: The text file must contain the path and the object name. (For example, Definitions\Treatments\TestOne.) The path and names are case-sensitive.

Example 3

This example illustrates how to delete campaign groups:

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -metaserver -metaserver {fully-qualified-target-host-name} -filegroups d:/temp/Groups.txt -verbose
 
./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -metaserver -metaserver {fully-qualified-target-host-name} -filegroups d:/temp/Groups.txt -delete

Example 4

This example illustrates how to delete selection campaigns (by including the whole campaign path):

./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -metaserver -metaserver {fully-qualified-target-host-name} -filecampaigns CICampaign_Selection,d:/temp/Campaigns.txt -verbose
 
./sasciutils_console -useraction DeleteAssetsQuickly -userid sasdemo -password {your-password} -bcname "your-business-context" -metaserver -metaserver {fully-qualified-target-host-name} -filecampaigns CICampaign_Selection,d:/temp/Campaigns.txt -delete