@textile/hub > Users > deleteSentboxMessage
Users.deleteSentboxMessage() method
Mark a message as read
Signature:
deleteSentboxMessage(id: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
id | string |
Returns:
Promise<void>
Example
import { Users } from "@textile/hub"
async function example(users: Users) {
const res = await users.listSentboxMessages({
limit: 1,
ascending: true,
})
if (res.length === 1) users.deleteInboxMessage(res[0].id)
}