-
Notifications
You must be signed in to change notification settings - Fork 111
Delete old CV versions #4869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maximiliankolb
merged 5 commits into
theforeman:master
from
ATIX-AG:delete_old_cv_versions
Jun 5, 2026
Merged
Delete old CV versions #4869
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dc35524
Rename module to delete CV versions via WebUI
maximiliankolb 5cef9e4
Add module to delete CV versions via CLI
maximiliankolb fef8d0f
Add module to delete CV versions via Ansible
maximiliankolb a4df1c8
Add module to purge content view versions
maximiliankolb 7f4dbd3
Move deleting CV versions to end of assembly
maximiliankolb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...mmon/modules/proc_deleting-multiple-content-view-versions-by-using-ansible.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="deleting-multiple-content-view-versions-by-using-ansible"] | ||
| = Deleting multiple content view versions by using Ansible | ||
|
|
||
| [role="_abstract"] | ||
| You can delete multiple content view versions simultaneously by using {Project} Ansible collection. | ||
|
|
||
| .Procedure | ||
| * Use the `{ansible-namespace}.content_view_version` module. | ||
| + | ||
| For more information, see the Ansible module documentation with `ansible-doc {ansible-namespace}.content_view_version`. | ||
35 changes: 35 additions & 0 deletions
35
...s/common/modules/proc_deleting-multiple-content-view-versions-by-using-cli.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="deleting-multiple-content-view-versions-by-using-cli"] | ||
| = Deleting multiple content view versions by using Hammer CLI | ||
|
|
||
| [role="_abstract"] | ||
| You can delete multiple content view versions simultaneously by using Hammer CLI. | ||
|
|
||
| .Procedure | ||
| . List versions of your content view: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view info \ | ||
| --name "_My_Content_View_Name_" \ | ||
| --organization-id _My_Organization_ID_ | ||
| ---- | ||
| . Delete content view versions: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view remove \ | ||
| --content-view-version-ids _My_Content_View_Version_ID_1_,_My_Content_View_Version_ID_2_ \ | ||
| --id _My_Content_View_ID_ | ||
| ---- | ||
|
|
||
| .Verification | ||
| * Verify that {Project} deleted the content view versions: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view info \ | ||
| --name "_My_Content_View_Name_" \ | ||
| --organization-id _My_Organization_ID_ | ||
| ---- |
6 changes: 3 additions & 3 deletions
6
...eting-multiple-content-view-versions.adoc → ...ontent-view-versions-by-using-web-ui.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
guides/common/modules/proc_purging-content-view-versions-by-using-cli.adoc
|
maximiliankolb marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="purging-content-view-versions-by-using-cli"] | ||
| = Purging content view versions by using Hammer CLI | ||
|
|
||
| [role="_abstract"] | ||
| You can purge excess numbers of content view versions on {Project} to limit disk space usage. | ||
| By default, {Project} keeps every version of a content view. | ||
| Removing content view versions is a tradeoff between disk space and possibly bandwidth during content synchronizations to {SmartProxyServers} and the possibility to roll back to older content snapshots. | ||
|
Lennonka marked this conversation as resolved.
|
||
|
|
||
| {Project} only considers deleting content view versions that are not part of any lifecycle environment. | ||
|
|
||
| .Procedure | ||
| . Optional: View your content view versions: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view info \ | ||
| --name "_My_Content_View_Name_" \ | ||
| --organization-id _My_Organization_ID_ | ||
| ---- | ||
| . Clean up content view versions: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view purge \ | ||
| --name "_My_Content_View_Name_" \ | ||
| --organization-id _My_Organization_ID_ \ | ||
| --versions-to-keep _My_Number_Of_Versions_To_Keep_ | ||
| ---- | ||
|
|
||
| .Verification | ||
| * Verify that {Project} deleted the content view versions: | ||
| + | ||
| [options="nowrap", subs="verbatim,quotes,attributes"] | ||
| ---- | ||
| $ hammer content-view info \ | ||
| --name "_My_Content_View_Name_" \ | ||
| --organization-id _My_Organization_ID_ | ||
| ---- | ||
|
|
||
| .Additional resources | ||
| * {AdministeringDocURL}Recovering_from_a_Full_Disk_admin[Recovering from a full disk in _{AdministeringDocTitle}_] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.