Remove specific file(s) from Files column

Hello,

I can upload file from API with GraphQL (“mutation add_file”); however, while deleting file(s) using API there is only one way which is to delete all the files from the column.

My question is, Is there any endpoint to delete specific files from Files column. Like, I have the assetID so can I use that to delete files.

Thanks.

1 Like

Hey @YuvrajSingh,

Im not an expert in this but I see a simliar old post: (How to remove / delete file from item via API)

Currently, the monday.com API does not support deleting individual files from a Files column. The available functionality allows for removing all files in a column simultaneously by using the clear_all parameter. To clear all files from a specific Files column, you can use the following GraphQL mutation:

graphql

CopyEdit

mutation {
  change_column_value(
    board_id: YOUR_BOARD_ID,
    item_id: YOUR_ITEM_ID,
    column_id: "files",
    value: "{\"clear_all\": true}"
  ) {
    id
  }
}

Replace YOUR_BOARD_ID and YOUR_ITEM_ID with the appropriate IDs for your board and item. This mutation will remove all files from the specified Files column.

monday Community Forum

As of now, there is no endpoint to delete specific files using their asset IDs. If this feature is critical for your workflow, you might consider submitting a feature request to the monday.com team or exploring alternative methods to manage files within your application. Hope this helps you! If you found this helpful? Let me know by liking this post! :slight_smile:

1 Like