we are trying to delete files using
full-delete api call (https://developers.hubspot.com/docs/methods/files/hard_delete_file_and_associated_objects). The API call returns string
false as if file is not deleted. But when we try to load the file by id we receive
null, as if the file does not exist.
It seems that it would be better for full-delete api call to either return
404 Not Found in this case or return
true (i.e. file doesn’t exist). Otherwise we need to implement file delete with an additional API call to check does file exist or not whenever
full-delete responded with
false (i.e. we don’t know if file already doesn’t exist or delete failed for some reason).