nextcloud / nextcloud/tables

API endpoint to empty (truncate) a table

Open
#1,550 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: api
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Is your feature request related to a problem? Please describe.

Sometimes you need to put new data into a table, replacing an old data.
Right now it's possible, but you need to get the list of rows and then delete them one by one.

Describe the solution you'd like

DELETE /index.php/apps/tables/api/1/views/{viewId}/rows/* or something like that.

Describe alternatives you've considered

#437 With option to delete all

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing rows API for views and the related issue #437, then determine how a DELETE request should identify the table or view and represent truncation. Done means a documented endpoint can replace a table's existing data without requiring clients to delete rows individually, with behavior aligned to the existing API.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.