Demo
Delete any account
Permanently deletes any trading account owned by the authenticated user, regardless of whether it is a demo account or not. Also removes the associated purchase record and audit trail entries. Use with caution.
DELETE
/
v1
/
user
/
demo
/
accounts
/
{accountId}
/
force
Delete any account
curl --request DELETE \
--url https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/forceimport requests
url = "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Account deleted successfully",
"data": {
"deleted": true,
"accountId": "<string>",
"accountNumber": "ACC-M3X7K9P2"
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "You can only delete your own accounts",
"code": "NOT_YOUR_ACCOUNT"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Account not found",
"code": "ACCOUNT_NOT_FOUND"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}Related topics
Delete demo accountDelete a trading ruleDelete a copy trading configDelete an API keyDelete an unused custom role⌘I
Delete any account
curl --request DELETE \
--url https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/forceimport requests
url = "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/user/demo/accounts/{accountId}/force")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Account deleted successfully",
"data": {
"deleted": true,
"accountId": "<string>",
"accountNumber": "ACC-M3X7K9P2"
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "You can only delete your own accounts",
"code": "NOT_YOUR_ACCOUNT"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Account not found",
"code": "ACCOUNT_NOT_FOUND"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}