# NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

# database.Table.remove()

## Syntax

    remove(q, operator="=", key=None)

## Description

Deletes the record whose id is equal to q. The key parameter allows you to specify a different field to search in. The operator parameter allows you to specify a different comparison, greater-than or less-than for example.

## Example

Add a second page to the pages table whose title is "chapter one":

    db = ximport("database")
    book = db.connect("book")
    book.pages.remove(2, key="pagenumber")