Modules

filter

 

Objects/Functions

module (N/certificateControl)

SuiteScript 2.0

certificateControl.deleteCertificate(options)

{certificateControl}.deleteCertificate({scriptId: {string*}})

N/certificateControl Module
certificateControl.deleteCertificate()
Method Description: Deletes a certificate record that has been uploaded to the Certificates list in the UI or created using certificateControl.createCertificate(options). Your role must have either Edit or Full access to the Certificate Access permission to delete certificate records via 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.0 Script Types.
Governance: 10 units
Module: N/certificateControl Module
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=certificateControl.deleteCertificate(options)

Example:

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

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_156199793585.html