Scenario 4: Remove Unnecessary Files from a Service Instance

In this scenario, you run a sequence of EPM Automate commands to complete these steps. For detailed information, see Working with EPM Automate.

  • Sign in to the instance using these credentials. Substitute the service administrator user name, password, and identity domain of the service instance for the italicized placeholders here and in the EPM Automate sample.

    • User name: USERNAME

    • Password file: C:/<Directory>/<fileName>.epw

      You need to create this file manually. See the encrypt command in Command Reference in Working with EPM Automate for Oracle Enterprise Performance Management Cloud .


    • Identity Domain: IDENTITYDOMAIN

  • List the contents of the Planning repository.

  • Delete files entity metadata.csv and forecastdata.csv.

  • Log out.

Example 2-13 EPM Automate

epmautomate login username password https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX>
epmautomate listfiles
epmautomate deletefile entitymetadata.csv
epmautomate deletefile forecastdata.csv
epmautomate logout

EPM Automate displays a code in the console to indicate the status of the operation. See Working with EPM Automate.

Example 2-14 Java

public void integrationScenarioRemoveUnnecessaryFiles() throws Exception {

Common Functions: See Common Helper Functions for Java.

Dependent APIs: See Java Sample — and Java Sample — in View and Delete Files.

Example 2-15 cURL

funcIntegrationScenarioRemoveUnnecessaryFiles() {
	funcDeleteFile "entitymetadata.csv"
	funcDeleteFile "forecastdata.csv"

Example 2-16 Groovy

def integrationScenarioRemoveUnnecessaryFiles() {