Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

deleteAttachment(pageId, attachmentName)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Deletes the attachment for a given id or for a specified page and file name.

Deletes the attachment for a given id or for a specified page and file name.

Parameters

...

applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

...

Parameter name

...

Type

...

Required

...

Description

...

page ID

...

Number

...

Yes

...

The ID of the page with the selected attachment.

...

attachment name

...

String

...

Yes

...

.

Return Type

Boolean (true/false)

...

Code Block
languagejs
deleteAttachment(11801, "attachmentToDelete.txt");

Note

If you have multiple attachments on an issue with the same file name, all of them will be deleted.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "attachment_routines" and space = currentSpace ( )
labelsarray_routines