---
name: "sc_delete_record"
section: "3"
platform: "linux"
package: "libopensc2-dev"
version: "0.11.13-1.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_delete_record"
---

# sc\_delete\_record(3)

Delete a record from a file

## NAME

sc\_delete\_record - Delete a record from a file

## SYNOPSIS

```
#include <opensc.h>
int sc_delete_record(struct sc_card *card, unsigned int rec_nr);
```

## DESCRIPTION

This function deletes a record specified by *rec\_nr* on *card*. This is not a standard ISO 7816 operation, and is currently only supported on the Oberthur smart cards.

## RETURN VALUE

Returns 0 if successful, or a negative value in case of error.
