-- | Deletes an object from Netsuite.
deleteNS
    :: (IsNsRestletConfig cfg, IsNsType t, IsNsDataId a)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> a -- ^ Entity ID to delete
    -> IO (Either RestletError Value)
deleteNS cfg t i =
    doNS (toNsRestletConfig cfg) $
        NsActDelete (toNsType t) (toNsDataId i)
deleteNS
    :: (IsNsRestletConfig cfg, IsNsType t, IsNsDataId a)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> a -- ^ Entity ID to delete
    -> IO (Either RestletError Value)
deleteNS cfg t i =
    doNS (toNsRestletConfig cfg) $
        NsActDelete (toNsType t) (toNsDataId i)
deleteNS cfg t i =
    doNS (toNsRestletConfig cfg) $
        NsActDelete (toNsType t) (toNsDataId i)