Currently the file are deleted when the server return code 200
File deletion should be based on the hash of the file on the rpi and the server should return a json containing the hash of the file that the server received. if both hashes are the same the file is deleted from disk