Script to encrypt a file and add it to IPFS(ipfs.io)
Some things:


You'll want to wrap the call to main in if __name__ == '__main__': to be able to import from your package in other packages.
For maximum flexibility use argparse to pass the file name rather than making an interactive script.
Format strings are generally preferred over string concatenation, so fileToEncrypt + ".gpg" becomes "{}.gpg".format(fileToEncrypt).
Run the code through pycodestyle to get a bunch of tips on writing idiomatic Python. For example, Python appropriately uses snake_case for variable, function and method names.
Function in a function name is completely redundant. Use a highlighting editor or (ideally) an IDE to trivially distinguish between functions and variables.
Magic strings like encryption parameters and the IPFS address should be moved to either a configuration file, a command line parameter (possibly with a default) or a constant at the top of the file.
The shebang line should be #!/usr/bin/env python3 for maximum portability - it basically means that the first python3 executable on the PATH will be used.
You have a race condition in delEncryptedFile. Rather than checking for a file and then deleting it you should just try to delete it and then let the exception bubble up to the user if it fails. If at some point you want a nicer formatted error message that should be generated in main, not further down, so that, again, other packages can use your package easily.