steps to create delete type of rest api