botbook/src/chapter-06-gbdialog/keyword-delete-http.md
Rodrigo Rodriguez (Pragmatismo) c4d209352d docs: comprehensive keyword documentation update
Completed stub files:
- keyword-soap.md - SOAP web service integration
- keyword-merge-pdf.md - PDF merging (MERGE PDF with spaces)
- keyword-kb-statistics.md - KB statistics overview
- keyword-kb-collection-stats.md - Per-collection stats
- keyword-kb-documents-count.md - Document counting
- keyword-kb-documents-added-since.md - Recent document tracking
- keyword-kb-list-collections.md - Collection listing
- keyword-kb-storage-size.md - Storage monitoring

Updated documentation:
- keyword-generate-pdf.md - Updated to GENERATE PDF (spaces)
- keyword-delete.md - Rewritten for unified DELETE
- keyword-delete-http.md - Redirects to unified DELETE
- keyword-delete-file.md - Redirects to unified DELETE
- All keyword docs updated to use spaces not underscores

PROMPT.md updates:
- Added keyword naming rules (NO underscores)
- Added keyword mapping table
- Added quick reference for all keywords
- Added error handling examples

TASKS.md created:
- Comprehensive discrepancy report
- Model name update tracking (17 files)
- Config parameter documentation
- Architecture notes

Key clarifications:
- GENERATE FROM TEMPLATE = FILL keyword
- GENERATE WITH PROMPT = LLM keyword
- ON ERROR RESUME NEXT now implemented
- DELETE is unified (HTTP/DB/File auto-detect)
2025-12-05 09:55:38 -03:00

1.2 KiB

DELETE HTTP

Deprecated: The DELETE HTTP syntax is kept for backwards compatibility. Use the unified DELETE keyword instead, which auto-detects HTTP URLs.


Redirect to DELETE

The DELETE keyword now automatically handles HTTP DELETE requests when given a URL:

' Preferred - unified DELETE
DELETE "https://api.example.com/resource/123"

' Also works (backwards compatibility)
DELETE HTTP "https://api.example.com/resource/123"

See Also

  • DELETE — Unified delete keyword (recommended)

The unified DELETE keyword automatically detects:

  • HTTP URLs → HTTP DELETE request
  • Table + filter → Database delete
  • File path → File delete

Quick Example

' Set authentication header
SET HEADER "Authorization", "Bearer " + api_token

' Delete resource via API
DELETE "https://api.example.com/users/456"

' Clear headers
CLEAR HEADERS

TALK "User deleted"

Migration

Replace this:

DELETE HTTP "https://api.example.com/resource/123"

With this:

DELETE "https://api.example.com/resource/123"

Both work, but the unified DELETE is cleaner and more intuitive.