Portal Community
Irreversible: Deleted comments cannot be recovered. For moderation workflows where audit trails are required, use comment/hide (reversible) instead of delete. Log the comment content via comment/get before deleting if a record is needed.

When to Use

Configuration

Connection

FieldRequiredDescription
accessTokenRequiredLong-lived Instagram access token stored in BizFirst Credentials Manager.
igUserIdRequiredYour Instagram Business/Creator account ID.

Operation

FieldRequiredDescription
resourceRequiredMust be comments.
operationRequiredMust be delete.
commentIdRequiredID of the comment to permanently delete.

Sample Configuration JSON

{
  "resource": "comments",
  "operation": "delete",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "commentId": "{{ $trigger.body.value.commentId }}"
}

Validation Errors

ErrorCause
accessToken is requiredaccessToken field is missing or empty.
commentId is requiredcommentId field is missing or empty.
Graph API error 200You do not have permission to delete this comment (not on your media and not authored by you).
Graph API error 100Comment does not exist or was already deleted.

Output

Success Port

FieldTypeDescription
statusstring"success"
deletedbooleantrue when the comment was successfully deleted.
commentIdstringThe ID of the deleted comment (for audit logging).
payloadstringRaw JSON response from the Graph API.

Error Port

FieldTypeDescription
statusstring"error"
errorCodestringGraph API error code.
errorMessagestringError description.
payloadstringRaw error response.

Sample Output JSON

{
  "status": "success",
  "deleted": true,
  "commentId": "17858893269000001",
  "payload": "{\"success\":true}"
}

Expression Reference

ExpressionValue
{{ $output.instagram.deleted }}Boolean deletion confirmation
{{ $output.instagram.commentId }}Deleted comment ID for audit log

Node Policies & GuardRails

Examples

Automated spam deletion pipeline

// Step 1: Get comment details
{
  "resource": "comments",
  "operation": "get",
  "commentId": "{{ $trigger.body.value.commentId }}"
}

// Step 2: Log to audit DB (custom DB node)
// Step 3: Delete if spam score > 0.9
{
  "resource": "comments",
  "operation": "delete",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "commentId": "{{ $trigger.body.value.commentId }}"
}

Delete own erroneous first comment

{
  "resource": "comments",
  "operation": "delete",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "commentId": "{{ $db.recentPosts.where(mediaId=$input.mediaId).firstCommentId }}"
}

Removes an auto-posted first comment that contained an incorrect promotion code, retrieved from the internal post tracking database.