custom method in ci

Add delete method to a CI and expose it to third pary through web service

I need to create a Delete method in a CI & then expose that as web service to 3rd party. Can any one help on this?

Or is there any other way to delete rows in peoplesoft from third party systems using web service?

Thanks In advance