# May i confirm whether server side storage write and delete operation is transactional?

**URL:** <https://forum.heroiclabs.com/t/may-i-confirm-whether-server-side-storage-write-and-delete-operation-is-transactional/5392>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [June 25, 2024, 1:40pm UTC](https://forum.heroiclabs.com/t/may-i-confirm-whether-server-side-storage-write-and-delete-operation-is-transactional/5392 "2024-06-25T13:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mengxin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mengxin/32/1879_2.png) [@mengxin](https://forum.heroiclabs.com/u/mengxin)\
**Post date:** [June 25, 2024, 1:40pm UTC](https://forum.heroiclabs.com/t/may-i-confirm-whether-server-side-storage-write-and-delete-operation-is-transactional/5392/1 "2024-06-25T13:40:45Z")

</div>

Based on the concept doc:

> **[Collections](https://heroiclabs.com/docs/nakama/concepts/storage/collections/#write-objects)**
>
> Nakama incorporates a storage engine for project-specific data, such as user accounts. The storage engine design is optimized for object ownership, access permissions, and batch operations. Data is stored in collections with one or more objects which...

> A user can write one or more objects which will be stored in the database server. These objects will be written in a single transaction which guarantees the writes succeed together.

and the code sample is client SDK

may I ask whether the server’s corresponding API also guarantee the transaction for multiple requests in a single write/delete request?

such as JS runtime: [Function Reference - Heroic Labs Documentation](https://heroiclabs.com/docs/nakama/server-framework/typescript-runtime/function-reference/#storageWrite)

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [June 26, 2024, 9:23am UTC](https://forum.heroiclabs.com/t/may-i-confirm-whether-server-side-storage-write-and-delete-operation-is-transactional/5392/2 "2024-06-26T09:23:27Z")

</div>

Yes, all writes within a storageWrite, storageDelete or multiUpdate calls are transactional.
