I’ll add, the sftp module will let you create suitelets to manage your file cabinet. It would take some real finessing on the GitHub side to make sure you’re not messing stuff up, but I think that might have the answer you need for removing files from the FileCabinet??
N/sftp Module