Documentation

Export & Delete Account

Export all your account data and permanently delete your OrbitKit account.

Export a complete copy of your account data, then permanently delete your account if needed.

Warning: Account deletion is irreversible. Always export your data first.

Steps

  1. Export first (recommended):

    curl -H "Authorization: Bearer $TOKEN" \
         https://api.orbitkit.io/api/account/export \
         -o orbitkit-export.json
    
    let url = URL(string: "https://api.orbitkit.io/api/account/export")!
    var request = URLRequest(url: url)
    request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
    
    let (data, _) = try await URLSession.shared.data(for: request)
    try data.write(to: URL(fileURLWithPath: "orbitkit-export.json"))
    
    const res = await fetch("https://api.orbitkit.io/api/account/export", {
      headers: { Authorization: `Bearer ${token}` },
    });
    const data = await res.json();
    await fs.promises.writeFile("orbitkit-export.json", JSON.stringify(data));
    
  2. Delete account (irreversible):

    curl -X DELETE https://api.orbitkit.io/api/account \
      -H "Authorization: Bearer $TOKEN"
    
    var request = URLRequest(url: URL(string: "https://api.orbitkit.io/api/account")!)
    request.httpMethod = "DELETE"
    request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
    
    let (_, response) = try await URLSession.shared.data(for: request)
    
    await fetch("https://api.orbitkit.io/api/account", {
      method: "DELETE",
      headers: { Authorization: `Bearer ${token}` },
    });
    

    This cancels all subscriptions, releases all domains, deletes all data, and deletes your account.

What the export includes

  • Profile information (email, display name)
  • All app configurations (site settings, privacy policy data)
  • Subscription history
  • Custom domain assignments

What deletion does

  • Cancels all active Stripe subscriptions immediately
  • Releases all custom domains and their SSL certificates
  • Deletes all stored files (icons, images) from cloud storage
  • Removes all database records (apps, sites, policies)
  • Deletes the user account
  • See the Account endpoint reference for full details