Soft delete a folder. Contained automations are moved to root level, and child folders are moved to parent level. ## Path Parameters **`folder_id`** string required Folder ID (sfold_ prefixed) ## Deletion Behavior - Folder is soft deleted (marked as deleted, not removed from database) - All automations in the folder are moved to root level (folder_id set to null) - All child folders are moved to the deleted folder's parent level - Deletion timestamp is recorded ## Returns Returns 204 No Content on success. Request ```bash cURL curl -X DELETE "https://api.aitronos.com/api/v1/streamline/folders/sfold_abc123" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] folder_id = "sfold_abc123" response = requests.delete( f"https://api.aitronos.com/api/v1/streamline/folders/{folder_id}", headers={"X-API-Key": api_key} ) if response.status_code == 204: print("Folder deleted successfully") ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const folderId = "sfold_abc123"; const response = await fetch( `https://api.aitronos.com/api/v1/streamline/folders/${folderId}`, { method: "DELETE", headers: { "X-API-Key": apiKey } } ); if (response.status === 204) { console.log("Folder deleted successfully"); } ``` Response ```text 204 No Content ``` ```json 404 Not Found { "success": false, "error": { "code": "FOLDER_NOT_FOUND", "message": "Folder not found", "status": 404 } } ```