Only unposted transactions can be deleted. To correct a posted transaction you should use the Cancel command.
You will be asked for confirmation.
Posted transactions are deleted by means of the Purge command —see Purging a Period.