In the case where importing the cert and key removes the files from disk
the existing deploy will fail when it tries to remove those files. This
still attempts to remove the files but catches the error and moves on instead
of bombing like before.
Similarly, if the deploy had failed before, subsequent deploys would fail
because the script already existed, so it would not be able to create
the script. This first attempts to remove the script if it exists, and then
creates the script.
The following error happens if the header is set
to 'Content-Type: application/json':
{"statusCode":400,"message":"One or more errors occurred!",
"errors":{"serializerErrors":["The input does not contain
any JSON tokens. Expected the input to start with a valid
JSON token, when isFinalBlock is true. LineNumber:
0 | BytePositionInLine: 0."]}}
Fix TXT removal