Adding the 'delete' functionality