---
title: "Delete Uploaded Reference Cim"
method: DELETE
path: "/api/preferences/cim/upload/{file_id}"
tags: ["Preferences"]
---

# Delete Uploaded Reference Cim

`DELETE /api/preferences/cim/upload/{file_id}`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/preferences/cim/upload/{file_id}`
- Auth: HTTP bearer

Delete an uploaded reference report file.

## Path parameters

- `file_id` string, required

## Response `200`

Successful Response

- ReportTypePreferencesResponse: Response model for report type preferences.
  - `reference_report_ids` string[], required
  - `uploaded_references` UploadedReferenceResponse[], required
    - `id` string, required
    - `file_name` string, required
    - `gcs_path` string, required
    - `mime_type` string, required
    - `uploaded_at` string, required
  - `style` ReportTypeStyleResponse, required: Response model for report type style preferences.
    - `narrative_voice` NarrativeVoice, required: Narrative voice preferences extracted from reference reports.
      - `style_adjectives` string[]: Adjectives describing the writing style (e.g., 'professional', 'data-driven')
      - `tone` 'formal' | 'conversational' | 'balanced': Overall tone of the writing
      - `vocabulary_patterns` string[]: Notable vocabulary patterns or recurring phrases
      - `sentence_structure` 'complex' | 'simple' | 'varied': Typical sentence structure complexity
      - `formatting_preferences` string[]: Formatting preferences (e.g., 'bullet points', 'tables')
      - `voice_instructions` string: Full narrative voice instructions for prompt injection
    - `granularity_level` integer, required
    - `page_count_preference` string, required
    - `additional_patterns` AdditionalPatterns, required: Additional style patterns extracted from reference reports.
      - `uses_case_studies` boolean: Whether reports typically include case studies
      - `includes_market_data` boolean: Whether reports include market data/research
      - `financial_detail_level` 'high' | 'medium' | 'low': Level of financial detail in reports
      - `uses_visual_elements` boolean: Whether reports use charts, diagrams, tables
      - `includes_appendices` boolean: Whether reports typically include appendices
  - `last_analyzed_at` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
