GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - raohmaru/aem-purge-packages: Python script to purge outdated packages from AEM

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
aem-purge-packages.py
aem-purge-packages.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

AEM Purge Packages

Python command-line utility to clean up outdated Adobe Experience Manager (AEM) package versions. It automatically identifies and removes old package versions while retaining the most recent version of each package.

Prerequisites

  • Python 3.6 or higher

Installation

  1. Clone or download this repository:

    git clone <repository-url>
    cd aem-purge-packages
  2. Install required dependencies:

    pip3 install -r requirements.txt
  3. Verify the installation:

    python3 aem-purge-packages.py -h

Usage

Run against a local AEM instance with default credentials:

python3 aem-purge-packages.py

This will connect to localhost:4502 using admin:admin credentials and analyze all packages created up to today.

Connect to a remote AEM instance:

python3 aem-purge-packages.py --host author.example.com:4502 -u myuser:mypassword

Command-Line Options

Option Description
-h, --help Show help message and exit
-d DATE, --date DATE Only consider packages created before this date (format: YYYY-MM-DD)
-f, --force Skip confirmation prompts before each package deletion
--host HOST AEM instance host and port (format: host:port, default: localhost:4502)
-p PATH, --path PATH Target a specific package subdirectory (e.g., adobe searches /etc/packages/adobe)
-u USER, --user USER AEM credentials (format: username:password, default: admin:admin)
-v, --verbose Enable detailed logging output

Package Naming Convention

The tool only processes packages that follow this naming pattern:

package-name-X.Y.Z.b.zip

Where X.Y.Z.b represents version numbers (supports up to 4 numeric segments).

Packages not following this convention are ignored for safety.

Important Notes

⚠️ Warning: This tool deletes packages without uninstalling them first. The package content remains in the repository, but the package metadata is removed.

⚠️ Backup: Always backup your AEM instance before running cleanup operations.

⚠️ Permissions: Ensure your user account has sufficient permissions to delete packages in AEM.

About

Python script to purge outdated packages from AEM

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.