Fix issues with file deletion from home page