refactor DELETE to use options.js