psm jcs delete-service

Use this command to delete an Oracle Java Cloud Service instance. Once a service instance is deleted, your account is no longer charged for it.

Note:

Only a Java administrator can delete a service instance.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm jcs delete-service -s|--service-name ServiceName 
  -d|--dba-name dbaName 
  -a|--dba-password dbaPassword 
    [-f|--force-delete true|false]
    [-k|--skip-backup-on-terminate true|false]
    [-o|--force true|false]
    [-of|--output-format html|json|short]
    [-wc|--wait-until-complete true|false]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name ServiceName Name of the Oracle Java Cloud Service instance.
-n|--dba-name dbaName Username for the Oracle Database Cloud Service instance administrator.
-a|--dba-password dbaPassword Password for the Oracle Database Cloud Service instance administrator.
-f|--force-delete true|false (Optional) Flag that specifies whether you want to force the removal of the Oracle Java Cloud Service instance, regardless of whether there are processes running.

Default: false

-k|--skip-backup-on-terminate true|false (Optional) Flag that specifies whether you want to skip backing up the Oracle Java Cloud Service instance before deleting it.

Default: true

-o|--force true|false (Optional) When true, if any errors occur while deleting schemas created by the service infrastructure, the delete will continue even if an error occurs. All script failures during deletion will also be ignored. Any undeleted schemas should be deleted manually.

Accepted values: true|false

Default: false

-of|--output-format html|json|short (Optional) Output format of the command’s response:

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

—wc|--wait-until-complete true|false (Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not 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)

Default: false

Example


$ psm jcs delete-service -s Example1Instance -n SYS -a passoword -of json
{
    "auto_update":"true",
    "compliance_status":"",
    "compliance_status_desc":"",
    "created_by":"weblogic",
    "creation_time":"Thu Apr 28 17:4:41 UTC 2016",
    "description":"Example Instance 12-2-1 created via REST API",
    "error_status_desc":"",
    "identity_domain":"docteamucf2a",
    "last_modified_time":"Thu Apr 28 18:29:7 UTC 2016",
    "service_name":"Example1Instance",
    "service_uri":"http://myserver.us.mycorp.com:7103/paas/service/jcs/api/v1.1/instances/myteamabca/EdsExample1Instance",
    "status":"Terminating",
    "version":"12cRelease2",
    "wlsVersion":"12.2.1.0.160119"
}
Job ID : 34373

Note that this command returned a job ID. To see the status of your delete-service operation, use this ID with the psm jcs operation-status command:

$ psm jcs operation-status -j 34373 -of short

When you see the message:

    "operationId":364,
    "operationType":"DELETE_SERVICE",
    "serviceId":364,
    "serviceName":"Example1Instance",
    "serviceType":"jaas",
    "startDate":"2016-04-28T21:50:47.192+0000",
    "status":"SUCCEED",
    "summaryMessage":"DELETE_SERVICE"

the service was successfully deleted.