delete and search