DELETE
https://jmpy.me/api/v1
/
domains
/
subdomains
/
{id}
Delete Subdomain
curl --request DELETE \
  --url https://jmpy.me/api/v1/domains/subdomains/{id} \
  --header 'Authorization: Bearer <token>'
Delete a jmpy.me subdomain.
You cannot delete a subdomain if it has active short URLs unless force=true is used.

Path Parameters

id
string
required
The UUID of the subdomain.

Query Parameters

force
boolean
default:"false"
If true, deletes the subdomain even if it has associated short URLs (URLs will also be deleted).

Request Examples

curl -X DELETE "https://jmpy.me/api/v1/domains/subdomains/YOUR_SUBDOMAIN_ID?force=false" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Examples

{
  "success": true,
  "data": {
    "message": "Subdomain deleted successfully"
  }
}