Delete Upload or File

delete

/serviceapi/logan.uploads

Deletes an upload or a file.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Operation succeeded.

400 Response

Bad request. See response body for explanation.
Body ()
Root Schema : InternalErrorResponse
Type: object
Show Source
Nested Schema : messages
Type: array
Show Source
Nested Schema : violations
Type: array
Show Source
Nested Schema : ParserViolation
Type: object
Show Source

403 Response

Forbidden. User does not have required privileges.

500 Response

Internal server error. See response body for explanation.
Body ()
Root Schema : InternalErrorResponse
Type: object
Show Source
Nested Schema : messages
Type: array
Show Source
Nested Schema : violations
Type: array
Show Source
Nested Schema : ParserViolation
Type: object
Show Source
Back to Top

Examples

Run the following command to delete the upload with uploadName=SyslogUpload:

curl -u "OMC_USERNAME" -X DELETE -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/logan.uploads?uploadName=SyslogUpload"

Example of Response

The following shows an example of the response body.

{ 
   "uploadUser":"user",
   "uploadName":"SyslogUpload",
   "deletedLogCount":10323,
   "deletedLogFiles" : 1
}

Example 2: Delete a File

Run the following command to delete the file with uploadName=SyslogUpload and fileName=sys.log:

curl -u "OMC_USERNAME" -X DELETE -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/logan.uploads?uploadName=SyslogUpload&fileName=sys.log"

Example of Response

The following shows an example of the response body.

{
  "uploadUser" : "user",
  "uploadName" : "SyslogUpload",
  "fileName" : "sys.log",
  "deletedLogCount" : 102,
  "deletedLogFiles" : 1
}
Back to Top