Delete a Document Validation
Endpointβ
DELETE https://api.verifik.co/v2/document-validations/{id}
With this service, you can permanently remove a specific Document Validation record from your Verifik account. This action cannot be undone and will completely remove the document validation data.
Headersβ
Content-Typeβ
Type: String
Required: Yes
application/json
Authorizationβ
Type: String
Required: Yes
Bearer {YOUR_ACCESS_TOKEN}
Path Parametersβ
idβ
Type: string
Required: Yes
The unique identifier of the Document Validation you want to delete
Requestβ
- Node.js
- Python
- PHP
- Go
import axios from 'axios';
const options = {
method: 'DELETE',
url: 'https://api.verifik.co/v2/document-validations/document_validation_123456789',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("DELETE", "/v2/document-validations/document_validation_123456789", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://api.verifik.co/v2/document-validations/document_validation_123456789', [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer <your_token>',
]
]);
echo $response->getBody();
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.verifik.co/v2/document-validations/document_validation_123456789"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer <your_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(string(body))
}
Responseβ
- 200
- 404
- 401
{
"success": true,
"message": "Document validation deleted successfully",
"signature": {
"dateTime": "April 11, 2023 12:25 PM",
"message": "Certified by Verifik.co"
}
}
{
"error": "Document validation not found",
"message": "DOCUMENT_VALIDATION_NOT_FOUND"
}
{
"error": "Unauthorized",
"message": "UNAUTHORIZED"
}
Important Notesβ
- Permanent Deletion: This action cannot be undone. All document validation data will be permanently removed.
- Associated Data: Deleting a document validation may affect related app registrations or project flows.
- Backup: Consider backing up important data before deletion.
</TabItem>
</Tabs>
### Important Notes
* **Permanent Deletion**: This action cannot be undone. All document validation data will be permanently removed.
* **Associated Data**: Deleting a document validation may affect related app registrations or project flows.
* **Backup**: Consider backing up important data before deletion.
### Features
- **Permanent Deletion**: Completely removes the document validation record
- **ID Identification**: Uses unique ID to identify the validation to delete
- **Success Confirmation**: Confirmation response when deletion is successful
- **Error Handling**: Error responses for not found and unauthorized cases
- **Multiple Languages**: Support for JavaScript, Python, PHP, and Swift
- **Security**: Requires authentication with access token
- **Warnings**: Important notes about the permanent nature of deletion