This URL deletes the malware archived files.
Resource URL
PUT /malwarearchive?fileHash=
Query Parameter: ?fileHash=
Hash value of the file name
Note
If "fileHash" is not defined, all the archived files will be deleted
Request Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Hash value of the file name | String | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Status returned by deletion | Number |
Example
Request
PUT https://<NSM_IP>/sdkapi/malwarearchive?filehash=0bea3f79a36b1f67b2ce0f595524c77c
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 1001 | internal error |
2 | 400 | 3401 | Invalid file hash value |
3 | 400 | 3402 | No file to delete |