Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Confluence Command Line Interface (CLI)
Results will update as you type.
  • getPageHistoryList
  • getPageList
  • getPageSource
  • getPermissionList
  • getQuestion
  • getQuestionList
  • getReplacementVariableList
  • getServerInfo
  • getShortcutList
  • getSource
  • getSpace
  • getSpaceList
  • getSpacePermissionList
  • getTopic
  • getTopicList
  • getTrashList
  • getUser
  • getUserList
  • getWatchList
  • help
  • hideShortcut
  • installApp
  • loadFiles
  • login
  • logout
  • modifyBlog
  • modifyPage
  • movePage
  • moveShortcut
  • publishPage
  • removeAllPermissionsForGroup
  • removeApplicationLink
  • removeAttachment
  • removeAttachmentVersion
  • removeAttachmentVersions
  • removeBlog
  • removeComment
  • removeComments
  • removeContent
  • removeContentVersion
  • removeContentVersions
  • removeGroup
  • removeLabels
  • removePage
  • removePageVersion
  • removePageVersions
  • removePermissions
  • removeQuestion
  • removeQuestionWatch
  • removeShortcut
  • removeSpace
  • removeTopic
  • removeTopicWatch
  • removeTrash
  • removeUser
  • removeUserFromGroup
  • removeWatch
  • renamePage
  • render
  • renderBlog
  • renderPage
  • renderRequest
  • restoreExport
  • run
  • runFromApplicationLinkList
  • runFromAttachmentList
  • runFromAttachmentVersionList
  • runFromBlogList
  • runFromCommentList
  • runFromContentList
  • runFromCsv
  • runFromGroupList
  • runFromJson
  • runFromList
  • runFromPageList
  • runFromQuestionList
  • runFromShortcutList
  • runFromSpaceList
  • runFromSql
  • runFromTopicList
  • runFromTrashList
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    removeContentVersions

    removeContentVersions

    Dec 03, 2024

    See also: Actions

    Description

    Remove multiple versions from the revision history of some content like a page or blog. Server supports pages only. Use limit to remove versions except for the last limit versions. Use date to remove versions created before that date. Use regex parameter to remove versions whose edit message (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. Use the simulate parameter to log the details without running the removal so you can verify your selection criteria.

    Required Parameters

    ((space and title) or id)

    Optional Parameters

    date, limit, regex, dayOfMonth, month, year, dateFormat, simulate, quiet, outputType, file, append, columns, encoding

    Type

    Delete

    Category

    Content

    Output Formats

    Replacement Variables

    Hostingcloud,server,datacenter
    Since Version8.6

    Examples

    removeContentVersions

    Related How To's

    , multiple selections available, Use left or right arrow keys to navigate selected items
    cli-action
    cli-action-removecontentversions
    cli-parameter-space
    cli-parameter-title
    cli-parameter-id
    cli-parameter-date
    cli-parameter-limit
    cli-parameter-regex
    cli-parameter-dayofmonth
    cli-parameter-month
    cli-parameter-year
    cli-parameter-dateformat
    cli-parameter-simulate
    cli-parameter-quiet
    cli-parameter-file
    cli-parameter-append
    cli-parameter-columns
    cli-parameter-encoding
    cli-parameter-action
    cli-parameter-dateformat2
    cli-parameter-help
    cli-parameter-outputtype
    cli-parameter-special
    cli-parameter-verbose
    cli-parameter-debug
    cli-action-type-delete
    cli-action-category-content
    cli-parameter-server
    cli-parameter-user
    cli-parameter-password
    cli-parameter-token

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 23, "requestCorrelationId": "ae191e4243e34f8d94e1b99c787e9def"}