no-resource-delete-operation
@azure-tools/typespec-azure-resource-manager/no-resource-delete-operationEvery ARM resource that provides a create operation must also provide a delete operation.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;}❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Store>; // delete operation for a different resource}✅ Correct
Section titled “✅ Correct”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Employee>;}Reviewer advice
Section titled “Reviewer advice”Impacts the API: this corresponds to the LintDiff rule AllTrackedResourcesMustHaveDelete and causes an RPC violation. Ask the author to add a standard delete operation for the resource. Accept a suppression only when allowed by RPC guidelines.