<-- Back

How to delete deactivated apps in Mendix Cloud using the Projects API

Introduction

The Projects API allows inactive applications to be managed in the Mendix Cloud. This can help optimize the Mendix Cloud environment by keeping it organized and free of unused applications. The Projects API efficiently retrieves, assesses, and deletes deactivating projects through a few simple API calls. 

Environment

Applications hosted in Mendix Cloud

Procedure

Review the Mendix Projects API documentation for API usage, permissions, and authentication. Follow the below step-by-step instructions to identify and remove all deactivated applications in Mendix Cloud using the Projects API:
 

1. Use the following API request to list all projects. This request returns a list of all projects, including project status.

GET/projects

2. From the response data, use the following API to identify projects where the active status is set to false and store each project’s projectId if the project is inactive.

active==false

3. For each inactive projectId, use the following API request to delete the project and replace the projected with the specific ID of each deactivated project.

DELETE /projects/:projectId

4. Verify that the deactivated projects are removed by re-running the GET/projects command and confirm the absence from the response list.

Outcome

After following the above steps, the inactive apps will be deleted.

Internal information related

  • 230438

Additional information 

Mendix Documentation: Project API

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.