Error: "Cannot delete non-empty project" When Deleting Empty Project

book

Article ID: 144523

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

After deleting all tests in a project, attempting to delete the project itself results in the error "Cannot delete non-empty project".

Cause

If a test was deleted without also deleting test reports associated with it, then even though the reports are no longer visible in the UI, the existence of these reports means the project remains non-empty.

In other words, all tests and test reports must be deleted before the project they belong to is considered empty.

To verify if any test reports still exist under the project, execute the following API request:

GET https://a.blazemeter.com/api/v4/masters?projectId=<project_id>

(Replace <project_id> with your project's ID.)

If there are any reports under the project, they will be listed within the response message.

NOTE: Issuing API requests requires passing your BlazeMeter API and secret keys.  For more details on how to use the API, including the keys, please refer to the following documentation:
https://api.blazemeter.com/ 

Environment

Blazemeter SaaS

Resolution

If all tests have been deleted and all that remain are test reports that are no longer needed, you may force-delete the project via the API.

WARNING!  This deletion is irreversible!

To perform the forced deletion, execute the following API request:

DELETE https://a.blazemeter.com/api/v4/projects/{project_id}?force=true

(Replace <project_id> with your project's ID.)

NOTE: Issuing API requests requires passing your BlazeMeter API and secret keys.  For more details on how to use the API, including the keys, please refer to the following documentation: 

https://api.blazemeter.com/