Comments (3)
It's supposed to be invoked like this:
zone.dns_records.find_by_name("ftp.domain.com").delete
Or delete the record by its id:
zone.dns_records.find_by_id("dns_record_id").delete
Or delete all dns records for a zone:
zone.dns_records.all.each(&:delete)
from cloudflare.
Hmmm, I've never had to do that before. Can you check the API documentation and see what the correct method is?
from cloudflare.
Thanks! I will add some specs.
from cloudflare.
Related Issues (20)
- Verify exist subdmain? HOT 1
- zone.record seems to be nil HOT 2
- getting error after migration to async-rest HOT 4
- No async task available HOT 7
- Deleting a single dns record HOT 4
- [Feature] Get DNS record from a token that is not allowed to list all zones HOT 1
- [Bug?] All exceptions are catched in the connection block HOT 1
- No async task available! HOT 6
- Equivalent of `TRAVIS_JOB_ID`? HOT 1
- Async::REST::Error: Unknown content type: application/octet-stream! on reading from KV HOT 6
- Pagination does not seem to work HOT 9
- HTTP configuration missing
- Undefined method "Sync" when using cloudflare-dns-update HOT 4
- delete a record HOT 3
- Readme: link to API docs at Cloudflare HOT 2
- Not compatible with ruby 3.X HOT 7
- [Feature] Add support for KV namespace write key value expiration and expiration_ttl
- async-http upgrade breaks connection HOT 4
- add MX record HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflare.