Adding functionality for DELETE API from UI and console