// Go through all the user's posts and free memory allocated for it
	Post *posts = NULL;
	Post *prev_post = to_delete->first_post;
	while (prev_post != NULL){
		posts = prev_post;
		free(posts->contents);
		free(posts->date);
		prev_post = prev_post->next;
		free(posts);
	}

	// Free user itself's memory
	free(to_delete);
    return 0;