Postly
  1. Files
Postly
  • Overview
  • Workspaces
    • Fetch workspaces
      GET
  • Social Accounts
    • Fetch social accounts
      GET
  • Files
    • Upload a file
      POST
    • Fetch files
      GET
    • Delete a file
      DELETE
  • Posts
    • Create a post
      POST
    • Update a post
      PUT
    • Fetch a post
      GET
    • Fetch posts
      GET
    • Delete a post
      DELETE
  1. Files

Delete a file

DELETE
{workspaceId}/files/{fileUrl}
Removes the specified file from the workspace
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.postly.ai/v2/files/' \
--header 'X-API-KEY;'
Response Response Example
200 - Example 1
{
    "code": "string",
    "message": "string"
}

Request

Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
Path Params
workspaceId
string 
required
24-character hexadecimal identifier for the workspace
fileUrl
string 
required
URL-encoded path of the file to delete

Responses

🟢200FileDeleteSuccess
application/json
Body
code
string 
required
200
message
string 
required
File deleted successfully
🟠400BadRequestResponse
🟠401UnAuthorizedResponse
Modified at 2025-05-29 22:23:39
Previous
Fetch files
Next
Create a post
Built with