> For the complete documentation index, see [llms.txt](https://githubichsan.gitbook.io/journal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://githubichsan.gitbook.io/journal/wordpress-development/functions/wpdb-delete.md).

# wpdb::delete

Delete a row.

```php
function hapus_siswa( $id ) {
    global $wpdb; 

    return $wpdb->delete(
        $wpdb->prefix . 'id_siswa', // table name with dynamic prefix
        ['id' => $id], // which id need to delete
        ['%d'], // make sure the id format
    );
} 
```
