Question

Removing workspaces from a repository after 30 days?

  • 20 September 2023
  • 2 replies
  • 4 views

Badge

We have an 'Archived' repository on FME Flow. I was wondering if there was a way to create a workbench or an automation to, for example, delete a workspace after it has been sat in Archived for 30 days.

 

Thanks


2 replies

Userlevel 5

You can list the contents of the Archived repository using the REST API endpoint:

GET  /repositories/Archived/items

And then this endpoint to retrieve detailed information about each workspace:

GET /repositories/Archived/items/<item>

Perhaps look at the attribute "workspace.lastPublishDate" or something to that effect.

Then delete a workspace using:

DELETE /repositories/Archived/items/<item>

 You can use an HTTPCaller with a web connection to your FME Flow instance for authentication.

Complete API documentation here: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html

Badge

You can list the contents of the Archived repository using the REST API endpoint:

GET  /repositories/Archived/items

And then this endpoint to retrieve detailed information about each workspace:

GET /repositories/Archived/items/<item>

Perhaps look at the attribute "workspace.lastPublishDate" or something to that effect.

Then delete a workspace using:

DELETE /repositories/Archived/items/<item>

 You can use an HTTPCaller with a web connection to your FME Flow instance for authentication.

Complete API documentation here: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html

Thank you!

Reply