certificateControl.deleteCertificate(options)

Note:

The content in this help topic pertains to SuiteScript 2.0 and SuiteScript 2.1.

Method Description

Deletes a certificate record that has been uploaded to the Certificates list in the UI or created using certificateControl.createCertificate(options).

Note:

Your role must have either Edit or Full access to the Certificate Access permission to delete certificate records using SuiteScript. History of the certificate is not deleted.

Returns

The script ID of the deleted certificate.

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/certificateControl Module

Since

2019.2

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.scriptId

string

required

The script ID or internal ID for the certificate you want to delete. You can view the ID of a certificate from the Digital Certificates list at Setup > Company > Certificates.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/certificateControl Module Script Samples.

            // Add additional code
...
define(['N/certificateControl'],function(cc){
    var usages = cc.deleteCertificate({
        scriptId: 'custcertificate_china'
        });
    })
...
// Add additional code 

          

Related Topics

Digital Signing
Uploading Digital Certificates
N/https/clientCertificate Module
N/crypto/certificate Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices