If you accidentally mark a work as sold, but need to undo it, you will have to delete the sale. Deleting the sale doesn't delete any other information besides the sale itself.
Click on Income in the left-side menu, and then click on Sales/Donation underneath.
Click Actions to the right of the Sale you want to delete, and select Delete from the drop-down menu.
OR
Click on the Sale, then select Edit above the Piece and click on the red trashcan icon.
NOTE: The deletion is permanent and you won’t have access to the associated records recorded with that Sale. The Piece will be returned to your Inventory. You can always re-register the Sale if you click this by mistake.