---
name: "PX_delete_record"
section: "3"
platform: "linux"
package: "pxlib-dev"
version: "0.6.9-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PX_delete_record"
---

# PX\_delete\_record(3)

Removes a record from a Paradox file

## NAME

PX\_delete\_record — Removes a record from a Paradox file

## SYNOPSIS

\#include \<paradox.h\>

int PX\_delete\_record(pxdoc\_t \*pxdoc, int recpos)

## DESCRIPTION

Removes the record with number **recpos** from the  Paradox file. The first record has number 0. The data of the record  will be wiped out, making it impossible to reconstruct it later.  The data block where the record was stored is reconstruct to make  sure all records are at the beginning of the data block followed by  the free space.

Calls of **[PX\_insert\_record(3)](/PX_insert_record/3.md)** will use  the first datablock with free space and add the new record  after the records in the data block.

## RETURN VALUE

Returns 0 on success or -1 on failure.

## SEE ALSO

[PX\_retrieve\_record(3)](/PX_retrieve_record/3.md), [PX\_insert\_record(3)](/PX_insert_record/3.md), [PX\_update\_record(3)](/PX_update_record/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
