Request

Response

    Delete Projects

    This tutorial demonstrates how to delete a Forma project. The steps include checking which lifecycle actions are available for the project, archiving the project, marking it for deletion, verifying when the deletion is scheduled, and restoring the project.

    Deleting a project is a two-step process: first you archive the project, then you mark it for deletion. A project that is marked for deletion has a status of pendingDelete and can be restored during a 30-day grace period. After the grace period ends, the project can no longer be restored, and it is permanently deleted.

    For more information about project statuses and lifecycle transitions, see the Hub Administration API Field Guide.

    Before You Begin

    • Register an app and select Forma APIs in the API Access dropdown.
    • Acquire a 3-legged or 2-legged OAuth token with account:read and account:write scopes.
      • For a 3-legged token, ensure that the user is a Hub Admin.
      • For a 2-legged token, the User-Id header is required to process the Hub Admin POST endpoints. Retrieve the user ID by calling GET users/search with your 2-legged OAuth token and the user’s email address. Ensure that the user is a Hub Admin.
    • Verify that the project is a Forma project. The project lifecycle endpoints do not support BIM 360 projects.
    • Find the ID of the project you want to delete by calling GET projects. In this example, assume the hub ID is g5s4e3b5-vbta-6b02-d23a-5d55f36ba876 and the project ID is 3e354e66-ac8b-41dd-9bc1-93fc182c25dd.

    Step 1: Check the Available Lifecycle Actions

    Call GET projects/:projectId/lifecycle:list-transitions to retrieve the project’s current status and the lifecycle actions you can perform on it.

    Request

    curl -X 'GET' 'https://developer.api.autodesk.com/construction/admin/v1/projects/3e354e66-ac8b-41dd-9bc1-93fc182c25dd/lifecycle:list-transitions' \
         -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    {
        "currentStatus": "active",
        "availableTransitions": [
            {
                "action": "archive",
                "targetStatus": "archived",
                "actionUrl": "https://developer.api.autodesk.com/construction/admin/v1/projects/3e354e66-ac8b-41dd-9bc1-93fc182c25dd/lifecycle:archive",
                "method": "POST"
            }
        ]
    }
    
    Show More

    Note that the response includes only the transitions that are valid for the project’s current status and that you have permission to perform. In this example, the project is active, so the only available action is archive.

    Step 2: Archive the Project

    Call POST projects/:projectId/lifecycle:archive to archive the project. Archived projects are read-only.

    Request

    curl -X 'POST' 'https://developer.api.autodesk.com/construction/admin/v1/projects/3e354e66-ac8b-41dd-9bc1-93fc182c25dd/lifecycle:archive' \
         -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    HTTP/1.1 204 No Content
    

    The transition is applied before the response is returned, so the project’s status is now archived. If the project is not active, the endpoint returns a 409 (Conflict) HTTP status code.

    If you archived the project by mistake, you can return it to active status by calling POST projects/:projectId/lifecycle:unarchive.

    Step 3: Mark the Project for Deletion

    Call POST projects/:projectId/lifecycle:mark-for-deletion to mark the archived project for deletion.

    Request

    curl -X 'POST' 'https://developer.api.autodesk.com/construction/admin/v1/projects/3e354e66-ac8b-41dd-9bc1-93fc182c25dd/lifecycle:mark-for-deletion' \
         -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    HTTP/1.1 204 No Content
    

    The project’s status is now pendingDelete, and the 30-day grace period has started. The Hub Admins receive an email notification that the project has been marked for deletion. If the project is not archived, the endpoint returns a 409 (Conflict) HTTP status code.

    While the project is pending deletion:

    • GET projects excludes the project from its results by default. To include it, filter by pendingDelete status (Step 4).
    • With a 3-legged token, endpoints that reference the project return a 410 (Gone) HTTP status code for GET requests and a 409 (Conflict) HTTP status code for other requests. lifecycle:list-transitions and lifecycle:restore remain available.

    Step 4: Verify the Scheduled Deletion

    Call GET projects with filter[status]=pendingDelete to retrieve the projects in the hub that are pending deletion, including the date when each project’s grace period ends.

    Request

    curl -X 'GET' 'https://developer.api.autodesk.com/construction/admin/v1/accounts/g5s4e3b5-vbta-6b02-d23a-5d55f36ba876/projects?filter[status]=pendingDelete&fields=name,status,scheduledDeletion' \
         -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    {
        "pagination": {
            "limit": 20,
            "offset": 0,
            "totalResults": 1
        },
        "results": [
            {
                "id": "3e354e66-ac8b-41dd-9bc1-93fc182c25dd",
                "name": "Project 1",
                "status": "pendingDelete",
                "scheduledDeletion": {
                    "date": "2026-11-13T14:22:10.000Z",
                    "requestedBy": {
                        "name": "Jane Doe",
                        "email": "jane.doe@autodesk.com"
                    }
                }
            }
        ]
    }
    
    Show More

    The scheduledDeletion object is populated only while the project is in pendingDelete status:

    • scheduledDeletion.date is the time when the grace period ends. After this time, the project can no longer be restored.
    • scheduledDeletion.requestedBy identifies the user who marked the project for deletion.

    With a 2-legged token, you can also call GET projects/:projectId to retrieve the same scheduledDeletion object for a single project.

    (Optional) Step 5: Restore the Project

    If the project was marked for deletion by mistake, call POST projects/:projectId/lifecycle:restore before the grace period ends (scheduledDeletion.date). Restoring a project returns it to archived status and clears scheduledDeletion.

    Request

    curl -X 'POST' 'https://developer.api.autodesk.com/construction/admin/v1/projects/3e354e66-ac8b-41dd-9bc1-93fc182c25dd/lifecycle:restore' \
         -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    HTTP/1.1 204 No Content
    

    The project’s status is now archived. If the project is not in pendingDelete status — for example, because the grace period has already ended — the endpoint returns a 409 (Conflict) HTTP status code.

    To make the project available to its members again, call POST projects/:projectId/lifecycle:unarchive to return it to active status.

    Congratulations! You have successfully deleted a Forma project.