isDeletedflag is set to
AmityPostRepositoryprovides another convenient method to delete post. To delete the post, you just need the post id. If you are deleting child post, you need to pass the parent id too. If it is the parent post, just pass
truefor hard delete and
falsefor soft delete. Below is the sample code for both hard delete and soft delete.