Skip to main content

RemovePlugin

Removes a plugin with the specified GUID.

Syntax​

expression.RemovePlugin(guid, backup);

expression - A variable that represents an 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;
};