Skip to content

Method delete_id

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: delete_id()

Turkce Dokumantasyon | English Documentation

Category: Core CRUD Methods
Submodule: AmberDB
Entry Type: Data Deletion


1. Definition and Overview

delete_id() deletes a single record by its primary key ID.

  • Soft Deletion (keep_deleted => 1): If enabled in schema or config, the record is archived into the soft-delete table (tables/*.del) rather than physically unlinked.
  • Hard Deletion (keep_deleted => 0): The record is purged permanently from .db.
  • Automatically removes the ID from all secondary indexes (.inx, .fld, .src, .fac, .srt) and logs to the continuous WAL stream.

2. Syntax and Signature

my $status = $adb->delete_id($table_id, $record_id);

3. Practical Code Example

# Delete product with ID 101
$adb->delete_id("catalog_product", 101);

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally