> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v81/llms.txt)

# Delete Public Links

> DELETE /profiles/{profile_id}/public_links
> 
> Deletes public links, each found by `id`, by `page_id`, or by both. Send one object or an array of objects.
> 
> ### Authorization
> 
> The same rule as **Update Public Links**: SERVER users any form; COMPANY users their own profile's non-shared forms; BASIC users with the Form Builder role only forms they created. An internal API client gets no exemption. Every link is checked before anything is deleted, so one link the caller cannot modify fails the whole request with `403`.



## Servers
- https://api.iformbuilder.com/exzact/api/v81/[servername]: https://api.iformbuilder.com/exzact/api/v81/[servername]


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}


### Path parameters

- **profile_id** (string)
  id of the profile



### Body: application/json (object)

- **id** (integer)
  id of the public link

- **page_id** (integer)
  id of the form the link belongs to



## Responses
### 200
OK - every link was deleted. A single object in the body answers a single `{id}`; an array answers an array in request order.

#### Body: application/json (object)
- **id** (integer)
  id of the public link

- **error_message** (string)
  why this item failed


### 207
Multi-Status - some links were deleted and some failed. Each failed item carries `error_message`.

#### Body: application/json (array[object])
- **id** (integer)
  id of the public link

- **error_message** (string)
  why this item failed


### 400
Bad Request - every item failed (for example no link matches its `id` or `page_id`, or public links are not enabled on this server).

#### Body: application/json (object)
- **id** (integer)
  id of the public link

- **error_message** (string)
  why this item failed


### 401
Unauthorized - missing or invalid bearer token.

### 403
Forbidden - the caller cannot modify the form of one of the links (see Authorization), or `profile_id` is not the caller's own profile. Nothing is deleted.

#### Body: application/json (object)
- **error_message** (string)
  human-readable reason for the failure



[Powered by Bump.sh](https://bump.sh)
