Documentation
Documentation menu

Delete a project

Remove a project and its hosted files by hostname.

DELETE /v1/delete

Side effect. This deletes the entire project and its files. Confirm the exact hostname before sending the request. Use Fetch profile to look up subdomain if needed.

Authentication

Send the x-api-key header. The project must belong to the authenticated account.

Request

Send a required domain field as multipart/form-data. Use the hostname without a URL scheme or path.

Example

curl --fail-with-body -X DELETE https://ext.tiiny.host/v1/delete \
  -H "x-api-key: $TIINY_API_KEY" \
  -F 'domain=example.tiiny.site'

Success response

200 OK returns success: true, the profile fields, and the remaining data.quotaUsed and data.quotaLimit in bytes.

{
  "success": true,
  "data": {
    "id": "account-id",
    "email": "owner@example.com",
    "customDomains": ["tiiny.site"],
    "links": [],
    "maxLinks": 5,
    "maxFileSize": 75,
    "quotaUsed": 0,
    "quotaLimit": 10737418240
  }
}

Errors

Status Code or reason
400 DOMAIN_REQUIRED or INVALID_DOMAIN
401 Missing key
403 Key without API access or NOT_LINK_OWNER
404 LINK_NOT_FOUND
429 RATE_LIMIT_EXCEEDED

If the request times out, check Fetch profile before trying again.

Search documentation