PocketBase site
Preparing search index...
The search index is not available
PocketBase JSVM reference
PocketBase JSVM reference
$app
deleteExpiredOTPs
Function deleteExpiredOTPs
delete
ExpiredOTPs
(
)
:
void
DeleteExpiredOTPs deletes the expired OTPs for all auth collections.
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Pocket
Base JSVM reference
PocketBase
$apis
$app
Functions
auxDB
aux
Delete
aux
Delete
With
Context
aux
Has
Table
aux
Model
Query
aux
NonconcurrentDB
aux
Run
In
Transaction
aux
Save
aux
Save
No
Validate
aux
Save
No
Validate
With
Context
aux
Save
With
Context
aux
Vacuum
bootstrap
can
Access
Record
collection
Query
count
Records
create
Backup
create
View
Fields
data
Dir
db
delete
delete
All
Auth
Origins
By
Record
delete
AllMFAs
By
Record
delete
AllOTPs
By
Record
delete
ExpiredMFAs
delete
ExpiredOTPs
delete
Old
Logs
delete
Table
delete
View
delete
With
Context
encryption
Env
execute
expand
Record
expand
Records
find
All
Auth
Origins
By
Collection
find
All
Auth
Origins
By
Record
find
All
Collections
find
All
External
Auths
By
Collection
find
All
External
Auths
By
Record
find
AllMFAs
By
Collection
find
AllMFAs
By
Record
find
AllOTPs
By
Collection
find
AllOTPs
By
Record
find
All
Records
find
Auth
Origin
By
Id
find
Auth
Origin
By
Record
And
Fingerprint
find
Auth
Record
By
Email
find
Auth
Record
By
Token
find
Cached
Collection
By
Name
Or
Id
find
Collection
By
Name
Or
Id
find
Collection
References
find
First
External
Auth
By
Expr
find
First
Record
By
Data
find
First
Record
By
Filter
find
Log
By
Id
findMFABy
Id
findOTPBy
Id
find
Record
By
Id
find
Record
By
View
File
find
Records
By
Filter
find
Records
By
Ids
has
Table
import
Collections
import
Collections
By
MarshaledJSON
is
Bootstrapped
is
Collection
Name
Unique
is
Dev
is
Transactional
log
Query
logger
logs
Stats
model
Query
new
Backups
Filesystem
new
Filesystem
new
Mail
Client
nonconcurrentDB
record
Query
reload
Cached
Collections
reload
Settings
reset
Bootstrap
State
restart
restore
Backup
run
All
Migrations
run
App
Migrations
run
In
Transaction
run
System
Migrations
save
save
No
Validate
save
No
Validate
With
Context
save
View
save
With
Context
settings
start
store
subscriptions
Broker
sync
Record
Table
Schema
table
Columns
table
Indexes
table
Info
truncate
Collection
unsafe
Without
Hooks
vacuum
validate
validate
With
Context
Variables
root
Cmd
$dbx
$filepath
$filesystem
$http
$mails
$os
$security
$template
__hooks
array
Of
cron
Add
cron
Remove
migrate
on
Backup
Create
on
Backup
Restore
on
Batch
Request
on
Bootstrap
on
Collection
After
Create
Error
on
Collection
After
Create
Success
on
Collection
After
Delete
Error
on
Collection
After
Delete
Success
on
Collection
After
Update
Error
on
Collection
After
Update
Success
on
Collection
Create
on
Collection
Create
Execute
on
Collection
Create
Request
on
Collection
Delete
on
Collection
Delete
Execute
on
Collection
Delete
Request
on
Collection
Update
on
Collection
Update
Execute
on
Collection
Update
Request
on
Collection
Validate
on
Collection
View
Request
on
Collections
Import
Request
on
Collections
List
Request
on
File
Download
Request
on
File
Token
Request
on
Mailer
Record
Auth
Alert
Send
on
Mailer
Record
Email
Change
Send
on
Mailer
RecordOTPSend
on
Mailer
Record
Password
Reset
Send
on
Mailer
Record
Verification
Send
on
Mailer
Send
on
Model
After
Create
Error
on
Model
After
Create
Success
on
Model
After
Delete
Error
on
Model
After
Delete
Success
on
Model
After
Update
Error
on
Model
After
Update
Success
on
Model
Create
on
Model
Create
Execute
on
Model
Delete
on
Model
Delete
Execute
on
Model
Update
on
Model
Update
Execute
on
Model
Validate
on
Realtime
Connect
Request
on
Realtime
Message
Send
on
Realtime
Subscribe
Request
on
Record
After
Create
Error
on
Record
After
Create
Success
on
Record
After
Delete
Error
on
Record
After
Delete
Success
on
Record
After
Update
Error
on
Record
After
Update
Success
on
Record
Auth
Refresh
Request
on
Record
Auth
Request
on
Record
Auth
WithOAuth2
Request
on
Record
Auth
WithOTPRequest
on
Record
Auth
With
Password
Request
on
Record
Confirm
Email
Change
Request
on
Record
Confirm
Password
Reset
Request
on
Record
Confirm
Verification
Request
on
Record
Create
on
Record
Create
Execute
on
Record
Create
Request
on
Record
Delete
on
Record
Delete
Execute
on
Record
Delete
Request
on
Record
Enrich
on
Record
Request
Email
Change
Request
on
Record
RequestOTPRequest
on
Record
Request
Password
Reset
Request
on
Record
Request
Verification
Request
on
Record
Update
on
Record
Update
Execute
on
Record
Update
Request
on
Record
Validate
on
Record
View
Request
on
Records
List
Request
on
Settings
List
Request
on
Settings
Reload
on
Settings
Update
Request
on
Terminate
reader
To
String
router
Add
router
Use
sleep
Api
Error
Apple
Client
Secret
Create
Form
Autodate
Field
Bad
Request
Error
Bool
Field
Collection
Command
Context
Cookie
Date
Field
Date
Time
Dynamic
Model
Editor
Field
Email
Field
Field
Fields
List
File
Field
Forbidden
Error
Internal
Server
Error
JSONField
Mailer
Message
Middleware
Not
Found
Error
Number
Field
Password
Field
Record
Upsert
Form
Relation
Field
Select
Field
Subscription
Message
Test
Email
Send
Form
Test
S3
Filesystem
Form
Text
Field
Too
Many
Requests
Error
URLField
Unauthorized
Error
Validation
Error
Namespaces
apis
auth
blob
bufio
bytes
cobra
context
core
cron
dbx
exec
filepath
filesystem
forms
fs
hook
http
io
jwt
mailer
mails
multipart
net
oauth2
os
ozzo_
validation
pocketbase
router
search
security
slog
sql
store
subscriptions
sync
syntax
syscall
template
textproto
time
types
url
Type Aliases
Core
App
Pocket
Base
_
Tygoja
Any
_
Tygoja
Dict
exclude
Hooks
Generated using
TypeDoc
DeleteExpiredOTPs deletes the expired OTPs for all auth collections.