Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting ALL ItemsName() in a single Query in SimpleDB

HI,

I want to delete all ItemNames in single query in simpledb. whether it's possible in simple db.If possible please give the query for deleting all items in simple DB

Thanks senthil

like image 365
Senthil Avatar asked Dec 02 '22 04:12

Senthil


2 Answers

SimpleDB doesn't have any way to delete multiple records with a single query, and there is no equivalent to 'TRUNCATE TABLE'.

Your options are either to delete records one at a time or to delete the entire domain.

like image 192
Scrappydog Avatar answered Feb 23 '23 23:02

Scrappydog


Use the DeleteDomain operation to delete an entire domain. You can re-create the domain using CreateDomain afterward.

like image 22
Stephen McCarthy Avatar answered Feb 24 '23 01:02

Stephen McCarthy