#!/usr/bin/env ruby

# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2026 Harald Sitter <sitter@kde.org>

require 'tty/command'

cmd = TTY::Command.new

Dir.glob('trash/*').each do |snapshot|
  cmd.run!('btrfs', 'subvolume', 'delete', snapshot)
end

