FOF30\Model\DataModel::delete PHP Метод

delete() публичный Метод

Automatically performs a hard or soft delete, based on the value of $this->softDelete. A soft delete simply sets enabled to -2 whereas a hard delete removes the data from the database. If you want to force a specific behaviour directly call trash() for a soft delete or forceDelete() for a hard delete.
public delete ( mixed $id = null )
$id mixed Primary key (id field) value
    public function delete($id = null)
    {
        if ($this->softDelete) {
            return $this->trash($id);
        } else {
            return $this->forceDelete($id);
        }
    }