As seen in the Define API video, the ContactId was defined in the path.
To get the parameter value into field #xContactIdentification:
#Context.Request.PathParameters.TryParseAsInt32(
'ContactId', #xContactIdentification )
To delete the contact from xContacts table:
Delete
From_File(xContacts) With_Key(#xContactIdentification)