removeAttachmentVersions

See also: Actions

Description

Remove multiple versions of an attachment. Use limit parameter to remove versions except for the last limit versions. Use date parameter to remove versions created before that date. Use regex parameter to remove versions whose comment matches the pattern. Use '--options just1=day' to remove versions except for the last version created each day and similarly for week, month, and year. If multiple criteria are specified, all must be met. A numeric attachment id can substitute for the attachment name. By default, a CSV output lists each attachment version indicating versions selected and why - use quiet parameter to suppress the output or the file parameter. Use the simulate parameter to log the details without running the removal so you can verify your selection criteria. Use @all for name to automatically repeat the request for each attachment on the page.

Required Parameters

((space and title) or id), name, (date or limit or regex)

Optional Parameters

dateFormat, simulate, quiet, file, append, columns, outputType, encoding

Type

Delete

Category

Attachments

Output Formats

Replacement Variables

Hostingcloud,server,datacenter
Since Version

Examples

removeAttachmentVersions

Related How To's

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.