fix api name for file remove