Deleting Document and Folder through the API

The API to edit files (endpoint is quite similar to the API to edit document (endpoint, in the sense that both takes as input an array of changes to perform. Each change has an action type.
However the edit document API supports the action “delete”, while the edit file API does not. To be more clear, I did not find a solution yet to delete folder and files through the API.
Is it something that could be implemented?