# pass_delete
# -----------
# Elimina un secreto del password store.
# Sale con exit code 1 si la entrada no existe o pass falla.
#
# USO (sourced):
#   source pass_delete.sh
#   pass_delete agentes/viejo-token

pass_delete() {
    local entry="$1"

    if [ -z "$entry" ]; then
        echo "pass_delete: se requiere nombre de entrada" >&2
        return 1
    fi

    if ! pass rm -f "$entry" >/dev/null 2>&1; then
        echo "pass_delete: fallo al eliminar '$entry'" >&2
        return 1
    fi
}
