Can I delete the uploaded file only but not the document? #14165
lkho
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As titled, I would like to delete only the file. In the admin UI, if you just click the cross button to remove the file and click save, nothing will happen. The only way to delete the file is by deleting the document.
The reason to do this including:
The proposed feature can be implement as adding a flag to the update operation to force delete, and pass through the flag to
deleteAssociatedFiles({ overrideDelete: true })
. For cloud storage, modifyplugin-cloud-storage
and read the flag in thebeforeChange
hook.Beta Was this translation helpful? Give feedback.
All reactions