Delete a post
client.feedback.posts.delete(stringid, PostDeleteParams { featurebaseVersion } params?, RequestOptionsoptions?): PostDeleteResponse { id, deleted, object }
DELETE/v2/posts/{id}
Permanently deletes a post. This action cannot be undone.
What Gets Deleted
When you delete a post:
- The post itself is permanently removed
- All comments on the post are deleted
- Vote records are removed
- Any associated notifications are cleared
Response
Returns a deletion confirmation object with:
id- The ID of the deleted postobject- Always “post”deleted- Always true
Permissions
Requires member-level access or higher to delete posts.
Delete a post
import Featurebase from 'featurebase-node';
const client = new Featurebase({
apiKey: process.env['FEATUREBASE_API_KEY'], // This is the default and can be omitted
});
const post = await client.feedback.posts.delete('507f1f77bcf86cd799439011');
console.log(post.id);{
"id": "507f1f77bcf86cd799439011",
"deleted": true,
"object": "post"
}Returns Examples
{
"id": "507f1f77bcf86cd799439011",
"deleted": true,
"object": "post"
}