Finally got server-side file deletion to work.