I’ve been looking at some of the other storage adapters listed on the docs site and noticed some of them left the delete
method empty or just didn’t implement it at all (the built-in LocalFileStorage is one example). Is it expected of developers to implement this when building their adapter? If so, when is it called?
Hey @ifvictr Most resources that are uploaded into Ghost stay in the storage without a direct way to remove them through an API. The exception is ThemesStorage adapter which makes sure theme files are cleaned up properly.
The short answer is there’s no need to implement this method at the moment (but it might be needed in case future versions of Ghost API allow removing resources like e.g. images)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.