tables icon indicating copy to clipboard operation
tables copied to clipboard

API endpoint to empty (truncate) a table

Open RTechSn opened this issue 10 months ago • 3 comments

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

RTechSn avatar Jan 20 '25 14:01 RTechSn

Sounds useful in some scenarios. @RTechSn would you like to contribute to it?

blizzz avatar Jan 23 '25 20:01 blizzz

Sounds useful in some scenarios. @RTechSn would you like to contribute to it?

I will look into it. I have tried changing various fragments of Nextcloud code before, and generally it's pretty complex.

RTechSn avatar Jan 24 '25 12:01 RTechSn

Sounds useful in some scenarios. @RTechSn would you like to contribute to it?

I will look into it. I have tried changing various fragments of Nextcloud code before, and generally it's pretty complex.

Cool – please shout out if you need assistance!

blizzz avatar Jan 24 '25 12:01 blizzz