Added API function to delete file.