add palette delete function