int tf_delete_mem_key
removes the first occurrence of a key from an array of keys
0 on success, 1 if the key did not exist