Skip to content

[Feature Request] Add ttl for creating row #12334

@abhishek-junghare

Description

@abhishek-junghare

🔖 Enhancement description

This is for collections where we want the rows, say older than 60 days, to auto delete. Currently, I guess we can do this with scheduled functions, but how about -

const promise = tablesDB.createRow({
    databaseId: '<DATABASE_ID>',
    tableId: '<TABLE_ID>',
    rowId: ID.unique(),
    data: {},
    ttl: 5184000 // 60 days in seconds
});

🎤 Pitch

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / databasesFixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions