Skip to content

Bug: MetaAPI Account Deletion Fails with 404 Error #16

@darshil25

Description

@darshil25

Bug: MetaAPI Account Deletion Fails with 404 Error

Description

When deleting an MT account via Javascript SDK, the API throws a 404 error even though the account is successfully deleted from MetaAPI.

Root Cause

The MetaAPI SDK's .remove() method internally calls .getAccount() to verify/refresh state during deletion. This internal GET call fails with 404 once the account begins deletion, throwing an exception even though the operation completes successfully.

Symptoms

  • Account is deleted from MetaAPI dashboard ✓
  • API returns {"error": "metaapi delete failed"} with 500 status ✗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions