delete_operation function

Delete an operation