Deduct costs from non-business online sales.

How would I deduct the cost of items I sell online and the cost of shipping them from the amount shown on the 1099 I receive from the online platform? I am not operating an ongoing online business.