psm analyticssub delete-service

Use this command to delete a service created with Oracle Analytics Cloud Subscription. Once deleted, the account is no longer charged.


Only an Oracle Analytics Cloud Subscription administrator can use this command.


In the following syntax, line breaks have been added for clarity. Don't include them when entering the command.

psm analyticssub delete-service -s|--service-name instance-name 
    -f|--force true|false
    [-wc|--wait-until-complete true|false]
    [-of|--output-format json|html|short]


All parameters are required unless otherwise noted.

Parameter Description

-s|--service-name instance-name

Specifies the name of the service you want to delete.

-f|--force true|false

Ensures the service is deleted even if errors occur. The default value is false.

–wc|--wait-until-complete true|false

(Optional) If set to true, the command behaves synchronously. That is, it doesn't return until the submitted job is complete. The following message is displayed until the job is complete:

Waiting for the job to complete... (it cannot be cancelled)

The default value is false.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json — output is formatted as a JSON array.

  • html — output is formatted as HTML

  • short — output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm command-line interface. See Configuring the Command Line Interface.


$ psm analyticssub delete-service -s Example1Service -n SYS -p password

This command returns a job ID. To see the status of your delete-service operation, use this ID with the psm analyticssub operation-status command:

$ psm analyticssub operation-status -j 34373

When you see the following message, the service was successfully deleted.