mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
702 B
702 B
sidebar_position
sidebar_position |
---|
10 |
Delete a post
Delete a post with the given post ID.
Only can delete your own posts.
```js async function PostModel.delete(payload) ```
[Object] Payload
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
post_id | String | false | undefined |
Success Response
Parameter | Type | Content |
---|---|---|
post_id | String | |
deleted | Boolean |
Examples
Basic usage
const post = await PostModel.delete({
post_id: "0000",
})
console.log(post)
// result: {
// post_id: "0000",
// deleted: true,
// }