---
name: "zip_source_is_deleted"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_source_is_deleted"
---

# zip\_source\_is\_deleted(3)

check if zip\_source is deleted

## NAME

**zip\_source\_is\_deleted** – check if zip\_source is deleted

## LIBRARY

libzip (-lzip)

## SYNOPSIS

**#include \<zip.h\>**

*int*\

**zip\_source\_is\_deleted**(*zip\_source\_t \*source*);

## DESCRIPTION

The function **zip\_source\_is\_deleted**() returns whether the zip\_source was deleted. This can for example happen when all entries are removed from a zip archive.

## RETURN VALUES

**zip\_source\_is\_deleted**() returns 1 if the zip\_source is deleted and 0 otherwise.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_source(5)](/zip_source/5.md)

## HISTORY

**zip\_source\_is\_deleted**() was added in libzip 1.0.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
