Delete Upload

delete

/serviceapi/logan.uploads/{uploadId}

Deletes an upload.

Request

Supported Media Types
Path 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

The following example shows how to delete an upload with id 1066.

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

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/?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