Skip to main content
POST
DeleteProjectFile
Questions or issues? Contact us at api-support@manus.ai.
Auth:
  • API Key: Full access.
  • Standard OAuth client: Requires manage_all_tasks. create_project alone is not sufficient.
  • Trusted client: Full access.
The user must own the project or be a project member with edit permission.

Behavior

  • Removes a file previously added to the project. Pass both project_id and the project file’s file_id (from project.addFile or project.listFiles).
  • Only project files can be deleted through this endpoint; passing a project web link ID or a file ID from another project returns 404 not_found.

Errors

Headers

x-manus-api-key
string

API key for direct authentication. Provide either this or Authorization, not both. See Authentication.

Authorization
string

OAuth2 access token in Bearer {token} format. An OAuth client requires the manage_all_tasks scope unless it is a Trusted team client or Trusted public client; create_project alone is not sufficient. Provide either this or x-manus-api-key, not both. See the Open App guide.

Example:

"Bearer {access_token}"

Body

application/json
project_id
string
required

The unique identifier of the project.

Required string length: 1 - 65
file_id
string
required

The project file ID returned by project.addFile or project.listFiles.

Required string length: 1 - 65

Response

Project file deleted successfully.

ok
boolean
required

Whether the request was successful.

Example:

true

request_id
string
required

Unique identifier for this API request.