跳到主要内容

RemovePlugin

Removes a plugin with the specified GUID.

Syntax

expression.RemovePlugin(guid, backup);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
guidRequiredstringThe plugin identifier. It must be of the asc.{UUID} type.
backupRequiredstringThe plugin backup. This parameter is used when working with the desktop editors.

Returns

object

Example

function removePlugin(backup) {
if (removeGuid)
window.Asc.plugin.executeMethod('RemovePlugin', [removeGuid, backup], function(result) {
postMessage(result);
});

removeGuid = null;
};