I can't undo a partition on my macbook I want to "delete" disk0s4, but it isn't appearing in the Disk Utility app.  This is from a failed attempt to install Ubuntu, how can I delete this partition?

Here is the diskutil list output:

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            189.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:                        EFI                         60.0 GB    disk0s4
For anyone saying not to delete it because it's the EFI partition, it's not. "EFI EFI"(disk0s1) is the real EFI partition. The new EFI partition is just one that was improperly created during OP's failed installation of Ubuntu.

This will erase the partition and make it show up in Disk Utility(change PartitionName to whatever you want):

sudo diskutil eraseVolume JHFS+ PartitionName disk0s4


Now you can remove the partition like normal in Disk Utility(source):


  
  Open Disk Utility.
  Click the partition that you wish to delete under the logical
  volume.
  Click the Erase tab and make sure Mac OS X Extended (Journaled) is selected.
  Click the Erase button.
  Click the logical volume.
  Click the Partition tab.
  Highlight the partition that you erased in step 4.
  Click the ‘-‘ sign and click Remove.
  Use the drag handle to reallocate the space back relinquished
  by the deleted partition.
  Click Apply → Partition.