# Remove Empty Image Folder

Deletes an empty email-editor image-library folder. Refuses folders containing images or subfolders; no image is deleted, because sent newsletters keep loading them. The user empties a folder in the KlickTipp file manager.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Path of the folder to remove, as list-email-editor-image-folders lists it",
      "minLength": 1,
      "maxLength": 250
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "folders",
    "folderCount",
    "changed",
    "truncated"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "folders": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "folderCount": {
      "type": "integer"
    },
    "changed": {
      "type": [
        "string",
        "null"
      ]
    },
    "truncated": {
      "type": "boolean"
    }
  }
}
```

