ajax script for delete Pattern