Delete file

Delete a file.

Path Parameters
sub_key string REQUIRED

Your app's subscribe key from Admin Portal.

channel string REQUIRED

The channel name to perform the operation on.

id string REQUIRED

PubNub-generated ID for uploaded file

name string REQUIRED

User-supplied filename

Responses
200

The operation was successful

Schema OPTIONAL
status integer OPTIONAL

Status code

400

One or more request parameters are invalid

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code

402

The Files service is not enabled for the subkey

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code

500

Internal Server Error

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code