azldev-remove-component
What it does
This skill explains how to delete a component manually, since azldev has no remove command. It is for developers retiring a package from an azldev distribution.
When to use it
- ✓When you want to drop a package from an azldev distribution.
- ✓When a package has dependents that might break after removal.
- ✓When publish or package group settings still mention the removed package.
Skill link
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to remove the old foo package from our azldev distribution. Can you check what depends on it and clean up the references?”
5 new skills a week. 1 minute to read.
How it works
The agent checks reverse dependencies, deletes the component's definition, lock and rendered spec, then removes leftover references. It validates any changes that affect other builds.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Remove a component
There is no azldev command to remove a component — it is a manual edit. A
deletion-only change needs no package build, but changes to dependents, package/image
configuration, or other built inputs must follow the repository's normal validation
requirements. The steps below delete the component's definition, lock, and rendered
spec, then clean up references.
Before you start
Confirm the component exists and inspect its resolved configuration:
azldev comp list -p <name> -q -O json
Check for reverse dependencies first: if other components BuildRequires or
Requires this one, removing it breaks their builds. Search the tree for the
component name. Identify its binary subpackage names from the rendered output under
specs/<first-char>/<name>/, then search for those names too.
azldev comp query currently supports local spec sources only, not the usual upstream
spec source.
Steps
Remove the definition. Delete the component's dedicated
<name>/<name>.comp.tomldirectory, or remove its inline[components.<name>]entry from whichever included TOML defines it.Remove publish / package config references. If your project configures publish channels or package groups, drop any references to the component or to its binary subpackages. Publishing is component-scoped; per-binary exceptions are binary-RPM-scoped — search for both.
Remove the lock. There is no azldev command for this:
rm locks/<name>.lockRemove the rendered spec. Let azldev prune orphaned spec directories:
azldev comp render -a --clean-stale--clean-stale(only valid with-a) removes rendered-spec directories that no longer correspond to a configured component. It re-renders everything, so it is slow; for a targeted removal you can instead delete the component's rendered spec underspecs/by hand.Check other references. Grep for the component (and its binary names) in image definitions and any
*.kiwi/ package-list files, and remove or replace them — an image that installs a now-removed package will not build.
Verify
azldev comp list -p <name> -q -O json # should report the component is not found
Also confirm the lock and rendered spec directory are gone and that no image or package configuration still references the component.
If the removal required changes to dependents or package/image configuration, build and test the affected outputs according to the repository's normal validation policy.
Notes
- Dependents with manual release. If removing this component forces a change
in a dependent (e.g. dropping a
BuildRequires), and that dependent setsrelease.calculation = "manual", bump its release counter yourself in the same change. Components with automatic release calculation (auto,autorelease,static) are handled by the normal commit/render/amend cycle. - Remove exclusive dependencies together. If a package is only needed by the component you are dropping, remove it in the same change to keep the tree consistent.
Generated by azldev docs agent; do not hand-edit.
FAQ
Is there a command to remove a package?
No. The skill says there is no azldev remove command, so removal is a manual edit.
How are dependents found?
The skill says to search the tree for the component's name and its binary subpackage names.
Does deleting need a package build?
The skill says a deletion-only change needs no build, but other changes that affect outputs follow the normal validation.
Details
Original description by the author
Read this before deleting or dropping a component; there is no azldev remove command, so doing it wrong leaves dangling state. Explains the manual removal workflow for deleting component metadata, cleaning references, and validating any related output-affecting changes. Triggers include remove component, delete package, drop component, prune dependency.
repo: microsoft/azurelinux
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14967
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
azldev-add-component
5.4kHelps your agent add a new software component to an azldev Linux distribution build, from inspecting the upstream spec to validating the result.
azldev-build-component
5.4kHelps your agent build and debug an azldev package, including the render, build and test loop and fixes for failing build checks.
azldev-comp-toml
5.4kHelps your agent write, edit and review the component definition files that azldev uses to describe how each package is built.
azldev-image
5.4kHelps your agent build, boot and test a Linux image, such as a container or virtual machine image, using the azldev image commands.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.