deta / deta-python

deta's official sdk
https://deta.space/docs/en/build/reference/sdk/base
MIT License
153 stars 26 forks source link

Base needs remove #56

Closed ksnmartin closed 2 years ago

ksnmartin commented 3 years ago

A remove function in the Base class to delete objects matching a certain query would be nice. for example

from fastapi import FastAPI
from deta import Deta 

deta = Deta("SECRET_KEY")
db = deta.Base('db')

app = FastAPI()

@app.get("/")
async def func():     
        db.remove({})#removes all entries
aavshr commented 3 years ago

hello, thank you for the suggestion, noted.