Skip to content

Quadlet: application file not removed upon quadlet removal with --all flag #27647

@kavishgr

Description

@kavishgr

Issue Description

When a Podman quadlet is removed with podman quadlet rm -af, its corresponding application file (e.g., .my-app.app) located in $HOME/.config/containers/systemd is not removed.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install some quadlets:
❯ podman quadlet install homelab/quadlets/nginx-test
/home/kavish/.config/containers/systemd/nginx-network.network
/home/kavish/.config/containers/systemd/nginx-test-2.container
/home/kavish/.config/containers/systemd/nginx-test.container
/home/kavish/.config/containers/systemd/nginx-volume.volume
  1. Running a podman quadlet list:
❯ podman quadlet list --format json
[
  {
    "Name": "nginx-network.network",
    "UnitName": "nginx-network-network.service",
    "Path": "/home/kavish/.config/containers/systemd/nginx-network.network",
    "Status": "inactive/dead",
    "App": ".nginx-test.app"
  },
  {
    "Name": "nginx-test-2.container",
    "UnitName": "nginx-test-2.service",
    "Path": "/home/kavish/.config/containers/systemd/nginx-test-2.container",
    "Status": "inactive/dead",
    "App": ".nginx-test.app"
  },
  {
    "Name": "nginx-test.container",
    "UnitName": "nginx-test.service",
    "Path": "/home/kavish/.config/containers/systemd/nginx-test.container",
    "Status": "inactive/dead",
    "App": ".nginx-test.app"
  },
  {
    "Name": "nginx-volume.volume",
    "UnitName": "nginx-volume-volume.service",
    "Path": "/home/kavish/.config/containers/systemd/nginx-volume.volume",
    "Status": "inactive/dead",
    "App": ".nginx-test.app"
  }
]
  1. List all files in $HOME/.config/containers/systemd:
❯ ls -a $HOME/.config/containers/systemd
.   nginx-network.network   .nginx-test.app       nginx-volume.volume
..  nginx-test-2.container  nginx-test.container
  1. Remove all quadlets:
❯ podman quadlet rm -af
nginx-network.network
nginx-test-2.container
nginx-test.container
nginx-volume.volume
  1. Re-listing $HOME/.config/containers/systemd shows that all quadlet related files are gone except for the .app files:
ls -a .config/containers/systemd
.  ..  .nginx-test.app 

Describe the results you received

The podman quadlet rm command successfully all quadlet files, but it fails to remove the application file (.app) that quadlet creates to group containers.

Describe the results you expected

During a podman quadlet rm -af, its corresponding application file .app should be automatically cleaned up.

podman info output

host:
  arch: arm64
  buildahVersion: 1.42.0
  cgroupControllers:
  - cpu
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.13-2.fc43.aarch64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.13, commit: '
  cpuUtilization:
    idlePercent: 98.88
    systemPercent: 0.46
    userPercent: 0.66
  cpus: 2
  databaseBackend: sqlite
  distribution:
    distribution: fedora
    variant: server
    version: "43"
  emulatedArchitectures:
  - linux/386
  - linux/amd64
  - linux/arm64be
  - linux/loong64
  - linux/mips
  - linux/mips64
  - linux/ppc
  - linux/ppc64
  - linux/ppc64le
  - linux/riscv32
  - linux/riscv64
  - linux/s390x
  eventLogger: journald
  freeLocks: 2047
  hostname: homelab-testing
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
  kernel: 6.17.8-300.fc43.aarch64
  linkmode: dynamic
  logDriver: journald
  memFree: 1377730560
  memTotal: 2036322304
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.17.0-1.fc43.aarch64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.17.0
    package: netavark-1.17.0-1.fc43.aarch64
    path: /usr/libexec/podman/netavark
    version: netavark 1.17.0
  ociRuntime:
    name: crun
    package: crun-1.25-1.fc43.aarch64
    path: /usr/bin/crun
    version: |-
      crun version 1.25
      commit: d9a0adce065c7747ab88ea6ccc42b15a626e08e1
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-0^20250919.g623dbf6-1.fc43.aarch64
    version: |
      pasta 0^20250919.g623dbf6-1.fc43.aarch64-pasta
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 2035281920
  swapTotal: 2035281920
  uptime: 1h 45m 4.00s (Approximately 0.04 days)
  variant: v8
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - docker.io
store:
  configFile: /home/kavish/.config/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/kavish/.local/share/containers/storage
  graphRootAllocated: 16039018496
  graphRootUsed: 6028578816
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 2
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/kavish/.local/share/containers/storage/volumes
version:
  APIVersion: 5.7.0
  BuildOrigin: Fedora Project
  Built: 1762819200
  BuiltTime: Tue Nov 11 04:00:00 2025
  GitCommit: 0370128fc8dcae93533334324ef838db8f8da8cb
  GoVersion: go1.25.4 X:nodwarf5
  Os: linux
  OsArch: linux/arm64
  Version: 5.7.0

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

/etc/os-release:

NAME="Fedora Linux"
VERSION="43 (Server Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=43
VERSION_CODENAME=""
PRETTY_NAME="Fedora Linux 43 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:43"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f43/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=43
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=43
SUPPORT_END=2026-12-02
VARIANT="Server Edition"
VARIANT_ID=server

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.triagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions