deleteAttachmentVersion
Syntax | deleteAttachmentVersion(pageId, attachmentName, version) | Package | |
Alias | deleteAttachmentVersion(attachmentId, version) | Pkg Usage |
Description
Deletes the attachment version.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
pageId | Number | Yes | The ID of the page with the selected attachment. |
attachmentName | String | Yes | The name of the attachment whose version will be deleted. |
version | Number | Yes | The version number to delete. |
Or
Parameter name | Type | Required | Description |
|---|---|---|---|
attachmentId | Number | Yes | The ID of the attachment having the version you want to delete. |
version | Number | No | The version number to delete. |
Return Type
Boolean (true/false)
Returns "true" if the attachment version was deleted successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.
Examples
Example 1
return deleteAttachmentVersion(12365, "attachment.ext", 2);Example 2
return deleteAttachmentVersion(12365, 3);See also
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
